aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_cryo
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/create_cryo')
-rw-r--r--devtools/create_cryo/create_cryo_dat.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/devtools/create_cryo/create_cryo_dat.cpp b/devtools/create_cryo/create_cryo_dat.cpp
index ca6d4bf790..817eda3d20 100644
--- a/devtools/create_cryo/create_cryo_dat.cpp
+++ b/devtools/create_cryo/create_cryo_dat.cpp
@@ -93,7 +93,7 @@ static void emitStatic(FILE *f) {
const int kNumCharacters = 20;
const int kNumActionCursors = 299;
const int kNumAreas = 12;
-
+
for (int i = 0; i < kNumFollowers; i++) {
writeLE<char>(f, followerList[i]._id);
writeLE<char>(f, followerList[i]._spriteNum);
@@ -105,13 +105,13 @@ static void emitStatic(FILE *f) {
writeLE<int16>(f, followerList[i].ff_C);
writeLE<int16>(f, followerList[i].ff_E);
}
-
+
fwrite(kLabyrinthPath, 1, kNumLabyrinthPath, f);
fwrite(kDinoSpeedForCitaLevel, 1, kNumDinoSpeedForCitaLevel, f);
fwrite(kTabletView, 1, kNumTabletView, f);
fwrite(kPersoRoomBankTable, 1, kNumPersoRoomBankTable, f);
fwrite(gotos, 5, kNumGotos, f); // sizeof(Goto)
-
+
for (int i = 0; i < kNumObjects; i++) {
writeLE<byte>(f, _objects[i]._id);
writeLE<byte>(f, _objects[i]._flags);
@@ -120,11 +120,11 @@ static void emitStatic(FILE *f) {
writeLE<uint16>(f, _objects[i]._powerMask);
writeLE<int16>(f, _objects[i]._count);
}
-
+
for (int i = 0; i < kNumObjectLocations; i++) {
writeLE<uint16>(f, kObjectLocations[i]);
}
-
+
for (int i = 0; i < kNumPersons; i++) {
writeLE<uint16>(f, kPersons[i]._roomNum);
writeLE<uint16>(f, kPersons[i]._actionId);
@@ -140,7 +140,7 @@ static void emitStatic(FILE *f) {
writeLE<byte>(f, kPersons[i]._speed);
writeLE<byte>(f, kPersons[i]._steps);
}
-
+
for (int i = 0; i < kNumCitadel; i++) {
writeLE<int16>(f, _citadelList[i]._id);
for (int j = 0; j < 8; j++)
@@ -148,16 +148,16 @@ static void emitStatic(FILE *f) {
for (int j = 0; j < 8; j++)
writeLE<int16>(f, _citadelList[i]._video[j]);
}
-
+
for (int i = 0; i < kNumCharacterRects; i++) {
writeLE<int16>(f, _characterRects[i].left);
writeLE<int16>(f, _characterRects[i].top);
writeLE<int16>(f, _characterRects[i].right);
writeLE<int16>(f, _characterRects[i].bottom);
}
-
+
fwrite(_characterArray, 5, kNumCharacters, f);
-
+
for (int i = 0; i < kNumAreas; i++) {
writeLE<byte>(f, kAreasTable[i]._num);
writeLE<byte>(f, kAreasTable[i]._type);
@@ -168,15 +168,15 @@ static void emitStatic(FILE *f) {
// pointer to _citadelRoomPtr is always initialized to null
writeLE<int16>(f, kAreasTable[i]._visitCount);
}
-
+
for (int i = 0; i < 64; i++) {
writeLE<uint16>(f, tab_2CEF0[i]);
}
-
+
for (int i = 0; i < 64; i++) {
writeLE<uint16>(f, tab_2CF70[i]);
}
-
+
fwrite(kActionCursors, 1, kNumActionCursors, f);
fwrite(mapMode, 1, 12, f);
fwrite(cubeTextureCoords, 6 * 2 * 3 * 2, 3, f);
@@ -193,11 +193,11 @@ static int emitData(char *outputFilename) {
fwrite("CRYODATA", 8, 1, f);
writeLE<uint32>(f, CRYO_DAT_VER);
-
+
emitIcons(f);
emitRooms(f);
emitStatic(f);
-
+
fclose(f);
printf("Done!\n");