aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/actor.cpp25
-rw-r--r--engines/cruise/actor.h4
-rw-r--r--engines/cruise/background.cpp7
-rw-r--r--engines/cruise/background.h4
-rw-r--r--engines/cruise/backgroundIncrust.cpp10
-rw-r--r--engines/cruise/backgroundIncrust.h4
-rw-r--r--engines/cruise/cell.cpp4
-rw-r--r--engines/cruise/cell.h4
-rw-r--r--engines/cruise/cruise.cpp4
-rw-r--r--engines/cruise/cruise.h4
-rw-r--r--engines/cruise/cruise_main.cpp433
-rw-r--r--engines/cruise/cruise_main.h4
-rw-r--r--engines/cruise/ctp.cpp13
-rw-r--r--engines/cruise/ctp.h4
-rw-r--r--engines/cruise/dataLoader.cpp4
-rw-r--r--engines/cruise/dataLoader.h4
-rw-r--r--engines/cruise/decompiler.cpp170
-rw-r--r--engines/cruise/delphine-unpack.cpp4
-rw-r--r--engines/cruise/detection.cpp4
-rw-r--r--engines/cruise/font.cpp7
-rw-r--r--engines/cruise/font.h4
-rw-r--r--engines/cruise/fontCharacterTable.cpp4
-rw-r--r--engines/cruise/fontCharacterTable.h4
-rw-r--r--engines/cruise/function.cpp29
-rw-r--r--engines/cruise/function.h4
-rw-r--r--engines/cruise/gfxModule.cpp10
-rw-r--r--engines/cruise/gfxModule.h4
-rw-r--r--engines/cruise/linker.cpp64
-rw-r--r--engines/cruise/linker.h4
-rw-r--r--engines/cruise/mainDraw.cpp54
-rw-r--r--engines/cruise/mainDraw.h4
-rw-r--r--engines/cruise/menu.cpp13
-rw-r--r--engines/cruise/menu.h4
-rw-r--r--engines/cruise/mouse.cpp4
-rw-r--r--engines/cruise/mouse.h4
-rw-r--r--engines/cruise/object.cpp4
-rw-r--r--engines/cruise/object.h4
-rw-r--r--engines/cruise/overlay.cpp25
-rw-r--r--engines/cruise/overlay.h4
-rw-r--r--engines/cruise/perso.cpp4
-rw-r--r--engines/cruise/perso.h4
-rw-r--r--engines/cruise/polys.cpp4
-rw-r--r--engines/cruise/polys.h4
-rw-r--r--engines/cruise/saveload.cpp4
-rw-r--r--engines/cruise/saveload.h4
-rw-r--r--engines/cruise/script.cpp16
-rw-r--r--engines/cruise/script.h4
-rw-r--r--engines/cruise/stack.cpp4
-rw-r--r--engines/cruise/stack.h4
-rw-r--r--engines/cruise/stringSupport.cpp4
-rw-r--r--engines/cruise/stringSupport.h4
-rw-r--r--engines/cruise/various.cpp4
-rw-r--r--engines/cruise/various.h4
-rw-r--r--engines/cruise/vars.cpp4
-rw-r--r--engines/cruise/vars.h4
-rw-r--r--engines/cruise/volume.cpp4
-rw-r--r--engines/cruise/volume.h4
57 files changed, 374 insertions, 674 deletions
diff --git a/engines/cruise/actor.cpp b/engines/cruise/actor.cpp
index dd38e15838..c4af217117 100644
--- a/engines/cruise/actor.cpp
+++ b/engines/cruise/actor.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/actor.cpp $
- * $Id:actor.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -471,8 +471,7 @@ void valide_noeud(int16 table[], int16 p, int *nclick, int16 solution0[20 + 3][2
(*nclick)++;
ctpVar19 = ctpVar11;
- if (*nclick == 2) // second point
- {
+ if (*nclick == 2) { // second point
x1 = table_ptselect[0][0];
y1 = table_ptselect[0][1];
x2 = table_ptselect[1][0];
@@ -858,26 +857,18 @@ void processAnimation(void) {
currentActor->phase = ANIM_PHASE_MOVE;
}
- if ((currentActor->counter >=
- 0)
- && ((currentActor->phase ==
- ANIM_PHASE_STATIC_END)
- || (currentActor->
- phase ==
- ANIM_PHASE_STATIC)))
+ if ((currentActor->counter >= 0)
+ && ((currentActor->phase == ANIM_PHASE_STATIC_END)
+ || (currentActor->phase == ANIM_PHASE_STATIC)))
{
int newA;
int inc = 1;
- int t_inc =
- currentActor->
- startDirection - 1;
+ int t_inc = currentActor->startDirection - 1;
if (t_inc < 0)
t_inc = 3;
- if (currentActor->
- nextDirection ==
- t_inc)
+ if (currentActor->nextDirection == t_inc)
inc = -1;
if (inc > 0)
diff --git a/engines/cruise/actor.h b/engines/cruise/actor.h
index 072eef9581..43b9b03e87 100644
--- a/engines/cruise/actor.h
+++ b/engines/cruise/actor.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/actor.h $
- * $Id:actor.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/background.cpp b/engines/cruise/background.cpp
index ebf0b78934..f23c331eb8 100644
--- a/engines/cruise/background.cpp
+++ b/engines/cruise/background.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/background.cpp $
- * $Id:background.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -98,8 +98,7 @@ int loadBackground(char *name, int idx) {
backgroundPtrtable[idx] =
(uint8 *) mallocAndZero(320 * 200 /*64000 */ );
}
-/* else
- {
+/* else {
backgroundPtrtable[idx] = hwMemAddr[idx];
} */
}
diff --git a/engines/cruise/background.h b/engines/cruise/background.h
index b8b9e623c6..d506d1663e 100644
--- a/engines/cruise/background.h
+++ b/engines/cruise/background.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/background.h $
- * $Id:background.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/backgroundIncrust.cpp b/engines/cruise/backgroundIncrust.cpp
index edaa68b490..7e79c048b1 100644
--- a/engines/cruise/backgroundIncrust.cpp
+++ b/engines/cruise/backgroundIncrust.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/backgroundIncrust.cpp $
- * $Id:backgroundIncrust.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -113,8 +113,7 @@ backgroundIncrustStruct *addBackgroundIncrust(int16 overlayIdx,
newElement->ptr = NULL;
strcpy(newElement->name, filesDatabase[params.fileIdx].subData.name);
- if (filesDatabase[params.fileIdx].subData.resourceType == 4) // sprite
- {
+ if (filesDatabase[params.fileIdx].subData.resourceType == 4) { // sprite
int width = filesDatabase[params.fileIdx].width;
int height = filesDatabase[params.fileIdx].height;
@@ -125,8 +124,7 @@ backgroundIncrustStruct *addBackgroundIncrust(int16 overlayIdx,
newElement->Y, newElement->X, (char *)backgroundPtr,
(char *)filesDatabase[params.fileIdx].subData.ptr);
// ASSERT(0);
- } else // poly
- {
+ } else { // poly
/* if(param4 == 1)
* {
* int var_A;
diff --git a/engines/cruise/backgroundIncrust.h b/engines/cruise/backgroundIncrust.h
index 3f61faadae..6de30978fd 100644
--- a/engines/cruise/backgroundIncrust.h
+++ b/engines/cruise/backgroundIncrust.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/backgroundIncrust.h $
- * $Id:backgroundIncrust.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/cell.cpp b/engines/cruise/cell.cpp
index 8a7b524a7b..d4b5aaed66 100644
--- a/engines/cruise/cell.cpp
+++ b/engines/cruise/cell.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/cell.cpp $
- * $Id:cell.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/cell.h b/engines/cruise/cell.h
index ea2fb7e777..c10ab93541 100644
--- a/engines/cruise/cell.h
+++ b/engines/cruise/cell.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/cell.h $
- * $Id:cell.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/cruise.cpp b/engines/cruise/cruise.cpp
index b427498c6f..9693fb7d03 100644
--- a/engines/cruise/cruise.cpp
+++ b/engines/cruise/cruise.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/cruise.cpp $
- * $Id:cruise.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/cruise.h b/engines/cruise/cruise.h
index cf768d8d57..73de46c599 100644
--- a/engines/cruise/cruise.h
+++ b/engines/cruise/cruise.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/cruise.h $
- * $Id:cruise.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/cruise_main.cpp b/engines/cruise/cruise_main.cpp
index 79a699433f..b3b0077ee7 100644
--- a/engines/cruise/cruise_main.cpp
+++ b/engines/cruise/cruise_main.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/cruise_main.cpp $
- * $Id:cruise_main.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -627,192 +627,98 @@ int getCursorFromObject(int mouseX, int mouseY, int *outX, int *outY) {
cellStruct *currentObject = cellHead.prev;
while (currentObject) {
- if (currentObject->overlay >= 0) {
- if (overlayTable[currentObject->overlay].alreadyLoaded) {
- if (currentObject->type == 4
- || currentObject->type == 1
- || currentObject->type == 9
- || currentObject->type == 3) {
- strcpy(objectName,
- getObjectName(currentObject->idx,
- overlayTable[currentObject->
- overlay].ovlData->
- specialString2));
-
- if (strlen(objectName)) {
- if (currentObject->freeze == 0) {
- var_2 =
- currentObject->idx;
- var_4 =
- currentObject->
- overlay;
- var_14 =
- currentObject->
- followObjectIdx;
- var_16 =
- currentObject->
- followObjectOverlayIdx;
-
- getMultipleObjectParam
- (currentObject->
- overlay,
- currentObject->idx,
- &params);
-
- var_10 = 0;
- var_E = 0;
- var_C = 0;
-
- if ((var_4 != var_16)
- && (var_2 !=
- var_14)) {
- getMultipleObjectParam
- (var_16,
- var_14,
- &params);
-
- var_C =
- params.X;
- var_E =
- params.Y;
- var_10 =
- params.
- fileIdx;
+ if (currentObject->overlay >= 0 && overlayTable[currentObject->overlay].alreadyLoaded
+ && (currentObject->type == 4 || currentObject->type == 1
+ || currentObject->type == 9 || currentObject->type == 3)) {
+ strcpy(objectName,
+ getObjectName(currentObject->idx,
+ overlayTable[currentObject->overlay].ovlData->specialString2));
+
+ if (strlen(objectName)) {
+ if (currentObject->freeze == 0) {
+ var_2 = currentObject->idx;
+ var_4 = currentObject->overlay;
+ var_14 = currentObject->followObjectIdx;
+ var_16 = currentObject->followObjectOverlayIdx;
+
+ getMultipleObjectParam(currentObject->overlay, currentObject->idx, &params);
+
+ var_10 = 0;
+ var_E = 0;
+ var_C = 0;
+
+ if ((var_4 != var_16)
+ && (var_2 != var_14)) {
+ getMultipleObjectParam
+ (var_16, var_14, &params);
+
+ var_C = params.X;
+ var_E = params.Y;
+ var_10 = params.fileIdx;
+ }
+
+ if (params.var5 >= 0 && params.fileIdx >= 0) {
+ if (currentObject->type == 3) {
+ assert(0);
+
+ var_2 = params.scale;
+ var_A = params.X + var_C;
+
+ // TODO: this var3 is stupid, investigate...
+ if ((var_A <= mouseX) && (var_A + params.fileIdx >= mouseX) && (mouseY >= params.Y + var_E) && (params.Y + var_E + var2 >= mouseY)) {
+ *outX = var_16;
+ *outY = var_14;
+
+ return (currentObject->type);
}
+ } else if (currentObject->type == 4 ||
+ currentObject->type == 1 ||
+ currentObject->type == 9) {
+ int si;
+ int var_8;
+ int di;
- if (params.var5 >= 0
- && params.
- fileIdx >= 0) {
- if (currentObject->type == 3) {
- assert
- (0);
-
- var_2 =
- params.
- scale;
- var_A =
- params.
- X +
- var_C;
-
- // TODO: this var3 is stupid, investigate...
- if ((var_A <= mouseX) && (var_A + params.fileIdx >= mouseX) && (mouseY >= params.Y + var_E) && (params.Y + var_E + var2 >= mouseY)) {
- *outX
- =
- var_16;
- *outY
- =
- var_14;
-
- return
- (currentObject->
- type);
- }
- } else
- if
- (currentObject->
- type == 4
- ||
- currentObject->
- type == 1
- ||
- currentObject->
- type ==
- 9) {
- int si;
- int var_8;
- int di;
-
- var_A =
- params.
- X +
- var_C;
- var_6 =
- params.
- Y +
- var_E;
-
- di = params.fileIdx;
-
- if (di
- <
- 0)
- {
- di += var_10;
- }
+ var_A = params.X + var_C;
+ var_6 = params.Y + var_E;
-/* if((filesDatabase[di].subData.resourceType == 8) && (filesDatabase[di].subData.ptr))
- {
- assert(0);
- }
- else */
- {
- var_4
- =
- filesDatabase
- [di].
- resType;
+ di = params.fileIdx;
+ if (di < 0) {
+ di += var_10;
+ }
+
+/* if((filesDatabase[di].subData.resourceType == 8) && (filesDatabase[di].subData.ptr)) {
+ assert(0);
+ }
+*/
+ {
+ var_4 = filesDatabase[di].resType;
+
+ if (var_4 == 1) {
+ var_C = filesDatabase[di].widthInColumn / 2;
+ } else {
+ var_C = filesDatabase[di].width;
+ }
+
+ var_8 = filesDatabase[di].height;
+
+ var_2 = mouseX - var_A;
+ si = mouseY - var_6;
+
+ if (var_2 > 0 && var_C > var_2 && si > 0 && var_8 >= si) {
+ if (filesDatabase[di].subData.ptr) {
if (var_4 == 1) {
- var_C
- =
- filesDatabase
- [di].
- widthInColumn
- /
- 2;
} else {
- var_C
- =
- filesDatabase
- [di].
- width;
}
- var_8
- =
- filesDatabase
- [di].
- height;
-
- var_2
- =
- mouseX
- -
- var_A;
- si = mouseY - var_6;
-
- if (var_2 > 0) {
- if (var_C > var_2) {
- if (si > 0) {
- if (var_8 >= si) {
- if (filesDatabase[di].subData.ptr) {
- if (var_4 == 1) {
- } else {
- }
-
- printf
- ("should compare to mask in getCursorFromObject...\n");
+ printf("should compare to mask in getCursorFromObject...\n");
- *outX
- =
- var_16;
- *outY
- =
- var_14;
+ *outX = var_16;
+ *outY = var_14;
- printf
- ("Selected: %s\n",
- objectName);
+ printf("Selected: %s\n", objectName);
- return
- currentObject->
- type;
- }
- }
- }
- }
- }
+ return currentObject->type;
}
}
}
@@ -878,52 +784,22 @@ void buildInventory(int X, int Y) {
menuStruct *pMenu;
pMenu = createMenu(X, Y, "Inventaire");
-
menuTable[1] = pMenu;
- if (pMenu) {
- numObjectInInventory = 0;
+ if (pMenu && numOfLoadedOverlay > 1) {
+ for (int i = 1; i < numOfLoadedOverlay; i++) {
+ ovlDataStruct *pOvlData = overlayTable[i].ovlData;
- if (numOfLoadedOverlay > 1) {
- int i;
+ if (pOvlData && pOvlData->objDataTable && pOvlData->numObjData) {
+ for (int j = 0; j < pOvlData->numObjData; j++) {
+ if (buildInventorySub1(i, j) != 3) {
+ int16 returnVar;
- for (i = 1; i < numOfLoadedOverlay; i++) {
- ovlDataStruct *pOvlData =
- overlayTable[i].ovlData;
+ getSingleObjectParam(i, j, 5, &returnVar);
- if (pOvlData && pOvlData->objDataTable) {
- int var_2;
-
- var_2 = 0;
-
- if (pOvlData->numObjData) {
- int j;
-
- for (j = 0;
- j < pOvlData->numObjData;
- j++) {
- if (buildInventorySub1
- (i, j) != 3) {
- int16
- returnVar;
-
- getSingleObjectParam
- (i, j, 5,
- &returnVar);
-
- if (returnVar <
- -1) {
- addSelectableMenuEntry
- (i,
- j,
- pMenu,
- 1,
- -1,
- getObjectName
- (j, pOvlData->specialString2));
- numObjectInInventory++;
- }
- }
+ if (returnVar < -1) {
+ addSelectableMenuEntry(i, j, pMenu, 1, -1, getObjectName(j, pOvlData->specialString2));
+ numObjectInInventory++;
}
}
}
@@ -1014,12 +890,9 @@ int callInventoryObject(int param0, int param1, int x, int y) {
var_34->stringNameOffset);
if (var_2 == param0) {
- if (param1 ==
- var_34->stringNameOffset) {
+ if (param1 == var_34->stringNameOffset) {
if (pObject) {
- if (pObject->
- type !=
- 3) {
+ if (pObject->type != 3) {
char var_214[80];
char var_1C4[80];
char var_174[80];
@@ -1027,110 +900,52 @@ int callInventoryObject(int param0, int param1, int x, int y) {
char var_D4[80];
char var_84[80];
- ovlDataStruct
- *var_12;
- ovlDataStruct
- *var_22;
+ ovlDataStruct *var_12;
+ ovlDataStruct *var_22;
int var_E = var_34->varIdx;
- int cx
- =
- var_34->
- stringIdx;
+ int cx = var_34->stringIdx;
int var_C = var_34->procIdx;
- int di
- =
- var_E;
+ int di = var_E;
if (var_E == 0)
di = var_1E;
- var_2 =
- cx;
- if (cx
- ==
- 0)
- var_2
- =
- var_1E;
+ var_2 = cx;
+ if (cx == 0)
+ var_2 = var_1E;
if (var_C == 0)
- var_C
- =
- var_1E;
-
- var_12
- =
- NULL;
- var_22
- =
- NULL;
-
- var_214
- [0]
- =
- 0;
- var_1C4
- [0]
- =
- 0;
- var_174
- [0]
- =
- 0;
- var_124
- [0]
- =
- 0;
- var_D4
- [0]
- =
- 0;
- var_84
- [0]
- =
- 0;
-
- if (di
- >
- 0)
- {
- var_22
- =
- overlayTable
- [di].
- ovlData;
+ var_C = var_1E;
+
+ var_12 = NULL;
+ var_22 = NULL;
+
+ var_214[0] = 0;
+ var_1C4[0] = 0;
+ var_174[0] = 0;
+ var_124[0] = 0;
+ var_D4[0] = 0;
+ var_84[0] = 0;
+
+ if (di > 0) {
+ var_22 = overlayTable[di].ovlData;
}
if (var_2 > 0) {
- var_12
- =
- overlayTable
- [var_2].
- ovlData;
+ var_12 = overlayTable[var_2].ovlData;
}
if (var_12) {
if (var_34->stringNameOffset) {
- var_30
- =
- var_34->
- field_1A;
+ var_30 = var_34->field_1A;
if (var_28) {
if (var_12->specialString2) {
if (var_30 == -1 || var_30 == returnVar) {
char *ptrName = getObjectName(var_34->stringNameOffset, var_12->specialString2);
- menuTable
- [0]
- =
- createMenu
- (x,
- y,
- ptrName);
- var_28
- =
- 0;
+ menuTable[0] = createMenu(x, y, ptrName);
+ var_28 = 0;
}
}
}
@@ -1138,8 +953,7 @@ int callInventoryObject(int param0, int param1, int x, int y) {
}
if (var_22) {
- if (true /*var_34->varNameOffset>=0 */ ) // FIXME: This check is always true since varNameOffset is unsigned
- {
+ if (true /*var_34->varNameOffset>=0 */ ) { // FIXME: This check is always true since varNameOffset is unsigned
if (var_22->specialString1) {
char *ptr = getObjectName(var_34->varNameOffset, var_22->specialString1);
@@ -1289,8 +1103,7 @@ int processInput(void) {
ASSERT(0);
}
- if (var38 == 0) // are we in inventory mode ?
- {
+ if (var38 == 0) { // are we in inventory mode ?
if (menuTable[0] == 0) {
int X;
int Y;
diff --git a/engines/cruise/cruise_main.h b/engines/cruise/cruise_main.h
index 324d99f024..c42650a007 100644
--- a/engines/cruise/cruise_main.h
+++ b/engines/cruise/cruise_main.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/cruise_main.h $
- * $Id:cruise_main.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/ctp.cpp b/engines/cruise/ctp.cpp
index 07df6029b2..5af2cda46c 100644
--- a/engines/cruise/ctp.cpp
+++ b/engines/cruise/ctp.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/ctp.cpp $
- * $Id:ctp.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -66,16 +66,14 @@ void loadCtpSub2(short int coordCount, short int *ptr) {
short int *cur_ctp_routeCoords = (short int *)ctp_routeCoords; // coordinates table
int8 *cur_ctp_routes = (int8 *) ctp_routes;
- for (i = 0; i < coordCount; i++) // for i < ctp_routeCoordCount
- {
+ for (i = 0; i < coordCount; i++) { // for i < ctp_routeCoordCount
int varX = cur_ctp_routeCoords[0]; // x
int varY = cur_ctp_routeCoords[1]; // y
int di = 0;
int var4Offset = 2;
- while (*(int16 *) cur_ctp_routes > di) // while (coordCount > counter++)
- {
+ while (*(int16 *) cur_ctp_routes > di) { // while (coordCount > counter++)
int idx = *(int16 *) (cur_ctp_routes + var4Offset);
ptr[offset + idx] =
ctpProc2(varX, varY, ctp_routeCoords[idx][0],
@@ -189,8 +187,7 @@ void loadCtpSub1(int boxIdx, int scale, uint16 *_walkboxTable,
ASSERT(boxIdx <= 15);
- if (_walkboxTable[boxIdx * 40] > 0) // is walkbox used ?
- {
+ if (_walkboxTable[boxIdx * 40] > 0) { // is walkbox used ?
getWalkBoxCenter(boxIdx, _walkboxTable);
currentWalkBoxCenterYBis = currentWalkBoxCenterY;
diff --git a/engines/cruise/ctp.h b/engines/cruise/ctp.h
index b35523a3a7..2ea47ce62e 100644
--- a/engines/cruise/ctp.h
+++ b/engines/cruise/ctp.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/ctp.h $
- * $Id:ctp.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp
index 2212a3bde2..54a0e97732 100644
--- a/engines/cruise/dataLoader.cpp
+++ b/engines/cruise/dataLoader.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/dataLoader.cpp $
- * $Id:dataLoader.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/dataLoader.h b/engines/cruise/dataLoader.h
index 6b6bf52cf6..46e4ef447f 100644
--- a/engines/cruise/dataLoader.h
+++ b/engines/cruise/dataLoader.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/dataLoader.h $
- * $Id:dataLoader.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/decompiler.cpp b/engines/cruise/decompiler.cpp
index 68beab0846..b027f948aa 100644
--- a/engines/cruise/decompiler.cpp
+++ b/engines/cruise/decompiler.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/decompiler.cpp $
- * $Id:decompiler.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -136,52 +136,47 @@ void pushDecomp(char *string, ...) {
void resolveDecompShort(char *buffer) {
ovlData3Struct *data3Ptr = currentScript;
+ int i;
- {
- int i;
+ importScriptStruct *importEntry =
+ (importScriptStruct *) (data3Ptr->dataPtr +
+ data3Ptr->offsetToImportData);
- importScriptStruct *importEntry =
- (importScriptStruct *) (data3Ptr->dataPtr +
- data3Ptr->offsetToImportData);
-
- for (i = 0; i < data3Ptr->numImport; i++) {
- switch (importEntry->type) {
- case 20: // script
- case 30:
- case 40:
- case 50:
- {
- if (importEntry->offset == currentDecompScriptPtr->var4 - 3) // param1
- {
- sprintf(buffer,
- data3Ptr->dataPtr +
- data3Ptr->
- offsetToImportName +
- importEntry->offsetToName);
- return;
- }
- if (importEntry->offset == currentDecompScriptPtr->var4 - 6) // param2
- {
- sprintf(buffer, "linkedIdx");
- return;
- }
- break;
+ for (i = 0; i < data3Ptr->numImport; i++) {
+ switch (importEntry->type) {
+ case 20: // script
+ case 30:
+ case 40:
+ case 50:
+ {
+ if (importEntry->offset == currentDecompScriptPtr->var4 - 3) { // param1
+ sprintf(buffer,
+ data3Ptr->dataPtr +
+ data3Ptr->
+ offsetToImportName +
+ importEntry->offsetToName);
+ return;
}
- default:
- {
- if (importEntry->offset ==
- currentDecompScriptPtr->var4 - 4) {
- sprintf(buffer,
- data3Ptr->dataPtr +
- data3Ptr->
- offsetToImportName +
- importEntry->offsetToName);
- return;
- }
+ if (importEntry->offset == currentDecompScriptPtr->var4 - 6) { // param2
+ sprintf(buffer, "linkedIdx");
+ return;
+ }
+ break;
+ }
+ default:
+ {
+ if (importEntry->offset ==
+ currentDecompScriptPtr->var4 - 4) {
+ sprintf(buffer,
+ data3Ptr->dataPtr +
+ data3Ptr->
+ offsetToImportName +
+ importEntry->offsetToName);
+ return;
}
}
- importEntry++;
}
+ importEntry++;
}
buffer[0] = 0;
@@ -190,31 +185,28 @@ void resolveDecompShort(char *buffer) {
void resolveDecompChar(char *buffer) {
ovlData3Struct *data3Ptr = currentScript;
+ int i;
- {
- int i;
+ importScriptStruct *importEntry =
+ (importScriptStruct *) (data3Ptr->dataPtr +
+ data3Ptr->offsetToImportData);
- importScriptStruct *importEntry =
- (importScriptStruct *) (data3Ptr->dataPtr +
- data3Ptr->offsetToImportData);
-
- for (i = 0; i < data3Ptr->numImport; i++) {
- switch (importEntry->type) {
- default:
- {
- if (importEntry->offset ==
- currentDecompScriptPtr->var4 - 2) {
- sprintf(buffer,
- data3Ptr->dataPtr +
- data3Ptr->
- offsetToImportName +
- importEntry->offsetToName);
- return;
- }
+ for (i = 0; i < data3Ptr->numImport; i++) {
+ switch (importEntry->type) {
+ default:
+ {
+ if (importEntry->offset ==
+ currentDecompScriptPtr->var4 - 2) {
+ sprintf(buffer,
+ data3Ptr->dataPtr +
+ data3Ptr->
+ offsetToImportName +
+ importEntry->offsetToName);
+ return;
}
}
- importEntry++;
}
+ importEntry++;
}
buffer[0] = 0;
@@ -342,16 +334,14 @@ void resolveVarName(char *ovlIdxString, int varType, char *varIdxString,
for (i = 0; i < currentDecompOvl->numExport; i++) {
if (varIdx == currentDecompOvl->exportDataPtr[i].idx) {
- if (((currentDecompOvl->exportDataPtr[i].var4 & 0xF0) == 0) && varType != 0x20) // var
- {
+ if (((currentDecompOvl->exportDataPtr[i].var4 & 0xF0) == 0) && varType != 0x20) { // var
strcpy(outputName,
currentDecompOvl->exportNamesPtr +
currentDecompOvl->exportDataPtr[i].
offsetToName);
return;
}
- if ((currentDecompOvl->exportDataPtr[i].var4) == 20 && varType == 0x20) // script
- {
+ if ((currentDecompOvl->exportDataPtr[i].var4) == 20 && varType == 0x20) { // script
strcpy(outputName,
currentDecompOvl->exportNamesPtr +
currentDecompOvl->exportDataPtr[i].
@@ -722,13 +712,11 @@ int decompCompare(void) {
if(!pop)
si = 1;
- if(pop<0)
- {
+ if(pop<0) {
si |= 4;
}
- if(pop>0)
- {
+ if(pop>0) {
si |= 2;
}
@@ -1435,7 +1423,7 @@ int decompBreak(void) {
}
void generateIndentation(void) {
- int i;
+ int i, j;
for (i = 0; i < positionInDecompileLineTable; i++) {
if (decompileLineTable[i].type != 0) {
@@ -1449,37 +1437,25 @@ void generateIndentation(void) {
gotoStatement = strchr(gotoStatement, ' ') + 1;
destLine = atoi(gotoStatement);
+ destLineIdx = -1;
- {
- int j;
-
- destLineIdx = -1;
-
- for (j = 0; j < positionInDecompileLineTable;
- j++) {
- if (decompileLineTable[j].lineOffset ==
- destLine) {
- destLineIdx = j;
- break;
- }
+ for (j = 0; j < positionInDecompileLineTable; j++) {
+ if (decompileLineTable[j].lineOffset == destLine) {
+ destLineIdx = j;
+ break;
}
+ }
- assert(destLineIdx != -1);
-
- if (destLineIdx > i) {
- int j;
+ assert(destLineIdx != -1);
- for (j = i + 1; j < destLineIdx; j++) {
- decompileLineTable[j].indent++;
- }
+ if (destLineIdx > i) {
+ for (j = i + 1; j < destLineIdx; j++) {
+ decompileLineTable[j].indent++;
+ }
- if (strstr(decompileLineTable
- [destLineIdx - 1].line,
- "goto") ==
- decompileLineTable[destLineIdx -
- 1].line) {
- //decompileLineTable[destLineIdx-1].pendingElse = 1;
- }
+ if (strstr(decompileLineTable[destLineIdx - 1].line, "goto") ==
+ decompileLineTable[destLineIdx - 1].line) {
+ //decompileLineTable[destLineIdx-1].pendingElse = 1;
}
}
}
diff --git a/engines/cruise/delphine-unpack.cpp b/engines/cruise/delphine-unpack.cpp
index db4188fbfe..b1cdc13148 100644
--- a/engines/cruise/delphine-unpack.cpp
+++ b/engines/cruise/delphine-unpack.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/delphine-unpack.cpp $
- * $Id:delphine-unpack.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/detection.cpp b/engines/cruise/detection.cpp
index fc1d864a56..2ca83f4046 100644
--- a/engines/cruise/detection.cpp
+++ b/engines/cruise/detection.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/detection.cpp $
- * $Id:detection.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/font.cpp b/engines/cruise/font.cpp
index 92064acc53..ee99567525 100644
--- a/engines/cruise/font.cpp
+++ b/engines/cruise/font.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/font.cpp $
- * $Id:font.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -253,8 +253,7 @@ void renderWord(uint8 * fontPtr_Data, uint8 * outBufferPtr,
outBufferPtr += heightOff * width * 2; // param2 = height , param6 = width
outBufferPtr += drawPosPixel_X; // param1 = drawPosPixel_X
- for (i = 0; i < height; i++) // y++
- {
+ for (i = 0; i < height; i++) { // y++
uint16 currentColor1 =
(*(fontPtr_Data) << 8) | *(fontPtr_Data + 1);
uint16 currentColor2 =
diff --git a/engines/cruise/font.h b/engines/cruise/font.h
index 2a75cf28dd..b74482962d 100644
--- a/engines/cruise/font.h
+++ b/engines/cruise/font.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/font.h $
- * $Id:font.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/fontCharacterTable.cpp b/engines/cruise/fontCharacterTable.cpp
index ce0bec0f0f..2c2dddc479 100644
--- a/engines/cruise/fontCharacterTable.cpp
+++ b/engines/cruise/fontCharacterTable.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/fontCharacterTable.cpp $
- * $Id:fontCharacterTable.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/fontCharacterTable.h b/engines/cruise/fontCharacterTable.h
index f7956968ec..0bfe78641a 100644
--- a/engines/cruise/fontCharacterTable.h
+++ b/engines/cruise/fontCharacterTable.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/fontCharacterTable.h $
- * $Id:fontCharacterTable.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 092425bfc7..cfb579e331 100644
--- a/engines/cruise/function.cpp
+++ b/engines/cruise/function.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/function.cpp $
- * $Id:function.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -1006,8 +1006,7 @@ actorStruct *addAnimation(actorStruct * pHead, int overlay, int objIdx, int para
return pNewElement;
}
-int removeAnimation(actorStruct * pHead, int overlay, int objIdx, int objType)
-{
+int removeAnimation(actorStruct * pHead, int overlay, int objIdx, int objType) {
actorStruct* pl;
actorStruct* pl2;
actorStruct* pl3;
@@ -1019,14 +1018,12 @@ int removeAnimation(actorStruct * pHead, int overlay, int objIdx, int objType)
pl2 = pl;
pl = pl2->next;
- while(pl)
- {
+ while (pl) {
pl2 = pl;
- if(((pl->overlayNumber == overlay) || (overlay == -1)) &&
+ if (((pl->overlayNumber == overlay) || (overlay == -1)) &&
((pl->idx == objIdx) || (objIdx == -1)) &&
- ((pl->type == objType) || (objType == -1)))
- {
+ ((pl->type == objType) || (objType == -1))) {
pl->type = -1;
}
@@ -1037,29 +1034,25 @@ int removeAnimation(actorStruct * pHead, int overlay, int objIdx, int objType)
pl2 = pl;
pl = pl2->next;
- while(pl)
- {
- if(pl->type == -1)
- {
+ while (pl) {
+ if (pl->type == -1) {
pl4 = pl->next;
pl2->next = pl4;
pl3 = pl4;
- if(pl3 == NULL)
+ if (pl3 == NULL)
pl3 = pHead;
pl3->prev = pl->prev;
dir = pl->startDirection;
- if(pl->idx >= 0)
+ if (pl->idx >= 0)
freePerso(pl->idx);
free(pl);
pl = pl4;
- }
- else
- {
+ } else {
pl2 = pl;
pl = pl2->next;
}
diff --git a/engines/cruise/function.h b/engines/cruise/function.h
index 76100e41ba..13eb21ea1f 100644
--- a/engines/cruise/function.h
+++ b/engines/cruise/function.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/function.h $
- * $Id:function.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/gfxModule.cpp b/engines/cruise/gfxModule.cpp
index 119f99739e..9228193560 100644
--- a/engines/cruise/gfxModule.cpp
+++ b/engines/cruise/gfxModule.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/gfxModule.cpp $
- * $Id:gfxModule.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -526,10 +526,8 @@ void gfxModuleData_field_60(char *sourcePtr, int width, int height,
int i;
int j;
- for(i=x;i<height+x;i++)
- {
- for(j=y;j<width*16+y;j++)
- {
+ for(i=x;i<height+x;i++) {
+ for(j=y;j<width*16+y;j++) {
if(i>=0&&i<200&&j>=0&&j<320)
destPtr[i*320+j] = *(sourcePtr++);
}
diff --git a/engines/cruise/gfxModule.h b/engines/cruise/gfxModule.h
index 7339113f4c..e63b26e29f 100644
--- a/engines/cruise/gfxModule.h
+++ b/engines/cruise/gfxModule.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/gfxModule.h $
- * $Id:gfxModule.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/linker.cpp b/engines/cruise/linker.cpp
index 0057625e81..e72218037b 100644
--- a/engines/cruise/linker.cpp
+++ b/engines/cruise/linker.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/linker.cpp $
- * $Id:linker.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -186,70 +186,36 @@ int updateScriptImport(int ovlIdx) {
int temp =
ptrImportData->
offset;
- if (out1) //is sub function... (ie 'invent.livre:s')
- {
+ if (out1) { //is sub function... (ie 'invent.livre:s')
uint8 *ptr = ptrData + temp;
- *(ptr +
- 1)
- =
- out2;
- *(int16
- *)
- (ptr
- +
- 2)
- =
- ptrDest2->
- idx;
-
- flipShort
- (
- (int16
- *)
- (ptr + 2));
+ *(ptr + 1) = out2;
+ *(int16 *)(ptr + 2) = ptrDest2->idx;
+
+ flipShort((int16 *)(ptr + 2));
} else {
- if (param2 == 20 || param2 == 30 || param2 == 40 || param2 == 50) // this patch a double push
- {
- uint8
- *
- ptr
- =
- ptrData
- +
- temp;
+ if (param2 == 20 || param2 == 30 || param2 == 40 || param2 == 50) { // this patch a double push
+ uint8 *ptr = ptrData + temp;
*(ptr + 1) = 0;
*(ptr + 2) = out2; // update the overlay number
- *(int16 *) (ptr + 4) = ptrDest2->idx;
+ *(int16 *)(ptr + 4) = ptrDest2->idx;
- flipShort
- (
- (int16
- *)
- (ptr + 4));
+ flipShort((int16 *)(ptr + 4));
} else {
int var_4 = ptrDest2->var4;
if (var_4 & 1) {
- param2
- =
- 8;
+ param2 = 8;
} else {
- param2
- =
- 16;
+ param2 = 16;
}
if (var_4 >= 0 && var_4 <= 3) {
- param2
- |=
- 5;
+ param2 |= 5;
} else {
- param2
- |=
- 6;
+ param2 |= 6;
}
*(ptrData + temp) = param2;
diff --git a/engines/cruise/linker.h b/engines/cruise/linker.h
index 975ed0f322..808ace75e0 100644
--- a/engines/cruise/linker.h
+++ b/engines/cruise/linker.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/linker.h $
- * $Id:linker.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/mainDraw.cpp b/engines/cruise/mainDraw.cpp
index 3d409d0ba5..b30dc29380 100644
--- a/engines/cruise/mainDraw.cpp
+++ b/engines/cruise/mainDraw.cpp
@@ -18,13 +18,14 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/mainDraw.cpp $
- * $Id:mainDraw.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
#include "cruise/cruise_main.h"
-#include "polys.h"
+#include "cruise/polys.h"
+#include "common/util.h"
namespace Cruise {
@@ -131,8 +132,7 @@ void getPolyData(int fileIndex, int X, int Y, int *outScale, int *outY,
newFileIndex += fileIndex;
- if (true /*newFileIndex >= 0 */ ) // FIXME: comparison is always true due to limited range of data type
- {
+ if (true /*newFileIndex >= 0 */ ) { // FIXME: comparison is always true due to limited range of data type
if (filesDatabase[newFileIndex].resType == 0
&& filesDatabase[newFileIndex].subData.ptr) {
dataPtr =
@@ -180,8 +180,7 @@ void getPolySize(int positionX, int positionY, int scale, int sizeTable[4],
int lowerBorder;
m_flipLeftRight = 0;
- if (scale < 0) // flip left right
- {
+ if (scale < 0) { // flip left right
m_flipLeftRight = 1;
scale = -scale;
}
@@ -208,11 +207,8 @@ void getPolySize(int positionX, int positionY, int scale, int sizeTable[4],
upperBorder = (upscaleValue(upperBorder, scale) + 0x8000) >> 16;
- if (upperBorder < lowerBorder) // exchange borders if lower > upper
- {
- int temp = upperBorder;
- upperBorder = lowerBorder;
- lowerBorder = temp;
+ if (upperBorder < lowerBorder) { // exchange borders if lower > upper
+ SWAP(upperBorder, lowerBorder);
}
sizeTable[0] = lowerBorder; // left
@@ -231,11 +227,8 @@ void getPolySize(int positionX, int positionY, int scale, int sizeTable[4],
upperBorder -= *(dataPtr + 4);
upperBorder = (upscaleValue(upperBorder, scale) + 0x8000) >> 16;
- if (upperBorder < lowerBorder) // exchange borders if lower > upper
- {
- int temp = upperBorder;
- upperBorder = lowerBorder;
- lowerBorder = temp;
+ if (upperBorder < lowerBorder) { // exchange borders if lower > upper
+ SWAP(upperBorder, lowerBorder);
}
sizeTable[2] = lowerBorder; // bottom
@@ -397,8 +390,7 @@ void buildPolyModel(int positionX, int positionY, int scale, char *ptr2,
m_flipLeftRight = 1;
}
- if (scale < 0x180) // If scale is smaller than 384
- {
+ if (scale < 0x180) { // If scale is smaller than 384
m_useSmallScale = 1;
m_scaleValue = scale << 1; // double scale
} else {
@@ -448,8 +440,7 @@ void buildPolyModel(int positionX, int positionY, int scale, char *ptr2,
x = *(dataPointer++) - m_first_X;
y = *(dataPointer++) - m_first_Y;
- if (m_useSmallScale) // shrink all coordinates by factor 2 if a scale smaller than 384 is used
- {
+ if (m_useSmallScale) { // shrink all coordinates by factor 2 if a scale smaller than 384 is used
x >>= 1;
y >>= 1;
}
@@ -502,8 +493,7 @@ void buildPolyModel(int positionX, int positionY, int scale, char *ptr2,
do {
int linesToDraw = *dataPointer++;
- if (linesToDraw > 1) // if value not zero
- {
+ if (linesToDraw > 1) { // if value not zero
uint16 minimumScale;
m_color = *dataPointer; // color
@@ -514,8 +504,7 @@ void buildPolyModel(int positionX, int positionY, int scale, char *ptr2,
flipShort(&minimumScale);
- if (minimumScale > scale) // if the scale is too small, for the model to be drawn ...
- {
+ if (minimumScale > scale) { // if the scale is too small, for the model to be drawn ...
dataPointer += linesToDraw; // ... skip ahead
} else {
if (m_flipLeftRight) {
@@ -913,13 +902,10 @@ void mainDraw(int16 param) {
}
if ((params.var5 >= 0) && (objZ2 >= 0) && filesDatabase[objZ2].subData.ptr) {
- if (filesDatabase[objZ2].subData.resourceType == 8) // Poly
- {
+ if (filesDatabase[objZ2].subData.resourceType == 8) { // Poly
mainDrawPolygons(objZ2, currentObjPtr, objX2, params.scale, objY2, (char *)gfxModuleData.pPage10, (char *)filesDatabase[objZ2].subData.ptr); // poly
- } else if (filesDatabase[objZ2].subData.resourceType == 6) // sound
- {
- } else if (filesDatabase[objZ2].resType == 1) //(num plan == 1)
- {
+ } else if (filesDatabase[objZ2].subData.resourceType == 6) { // sound
+ } else if (filesDatabase[objZ2].resType == 1) { //(num plan == 1)
} else if (filesDatabase[objZ2].subData.resourceType == 4) {
objX1 = filesDatabase[objZ2].width; // width
spriteHeight = filesDatabase[objZ2].height; // height
@@ -953,12 +939,10 @@ void mainDraw(int16 param) {
change = false;
currentObjPtr->animStep = 0;
- if (currentObjPtr->animType) // should we resume the script ?
- {
+ if (currentObjPtr->animType) { // should we resume the script ?
if (currentObjPtr->parentType == 20) {
changeScriptParamInList(currentObjPtr->parentOverlay, currentObjPtr->parent, &procHead, 0, -1);
- }
- else if(currentObjPtr->parentType == 30) {
+ } else if (currentObjPtr->parentType == 30) {
changeScriptParamInList(currentObjPtr->parentOverlay, currentObjPtr->parent, &relHead, 0, -1);
}
}
diff --git a/engines/cruise/mainDraw.h b/engines/cruise/mainDraw.h
index 7ff6ffdc8f..ad10bcddc6 100644
--- a/engines/cruise/mainDraw.h
+++ b/engines/cruise/mainDraw.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/mainDraw.h $
- * $Id:mainDraw.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/menu.cpp b/engines/cruise/menu.cpp
index e30542cc1b..4f828d1fd3 100644
--- a/engines/cruise/menu.cpp
+++ b/engines/cruise/menu.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/menu.cpp $
- * $Id:menu.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -221,8 +221,7 @@ int playerMenu(int menuX, int menuY) {
freeStuff2();
}
/*
- if(currentMenu)
- {
+ if(currentMenu) {
freeMenu(currentMenu);
currentMenu = 0;
var37 = 0;
@@ -230,8 +229,7 @@ int playerMenu(int menuX, int menuY) {
main9 = -1;
}
- if(inventoryMenu)
- {
+ if(inventoryMenu) {
freeMenu(inventoryMenu);
inventoryMenu = 0;
var37 = 0;
@@ -239,8 +237,7 @@ int playerMenu(int menuX, int menuY) {
main9 = -1;
}*/
-/* if(mouseVar2)
- {
+/* if(mouseVar2) {
free3(mouseVar2);
} */
diff --git a/engines/cruise/menu.h b/engines/cruise/menu.h
index 9a33545224..4e15d15cf1 100644
--- a/engines/cruise/menu.h
+++ b/engines/cruise/menu.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/menu.h $
- * $Id:menu.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/mouse.cpp b/engines/cruise/mouse.cpp
index c9cec8f72a..a918e0536f 100644
--- a/engines/cruise/mouse.cpp
+++ b/engines/cruise/mouse.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/mouse.cpp $
- * $Id:mouse.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/mouse.h b/engines/cruise/mouse.h
index c7ef2a69c5..a6911ce27e 100644
--- a/engines/cruise/mouse.h
+++ b/engines/cruise/mouse.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/mouse.h $
- * $Id:mouse.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/object.cpp b/engines/cruise/object.cpp
index ce4de2a12b..22e81dea90 100644
--- a/engines/cruise/object.cpp
+++ b/engines/cruise/object.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/object.cpp $
- * $Id:object.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/object.h b/engines/cruise/object.h
index feec666687..546d2bc440 100644
--- a/engines/cruise/object.h
+++ b/engines/cruise/object.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/object.h $
- * $Id:object.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/overlay.cpp b/engines/cruise/overlay.cpp
index c1b35f61f6..179c53357d 100644
--- a/engines/cruise/overlay.cpp
+++ b/engines/cruise/overlay.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/overlay.cpp $
- * $Id:overlay.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -375,8 +375,7 @@ int loadOverlay(const uint8 *scriptName) {
if (!ovlData->ptr8) {
/* releaseScript(scriptIdx,scriptName);
- if(freeIsNeeded)
- {
+ if(freeIsNeeded) {
freePtr(unpackedBuffer);
} */
@@ -396,8 +395,7 @@ int loadOverlay(const uint8 *scriptName) {
if (!ovlData->objDataTable) {
/* releaseScript(scriptIdx,scriptName);
- if(freeIsNeeded)
- {
+ if(freeIsNeeded) {
freePtr(unpackedBuffer);
} */
@@ -457,8 +455,7 @@ int loadOverlay(const uint8 *scriptName) {
if (!ovlData->objData2WorkTable) {
/* releaseScript(scriptIdx,scriptName);
- if(freeIsNeeded)
- {
+ if(freeIsNeeded) {
freePtr(unpackedBuffer);
} */
@@ -474,8 +471,7 @@ int loadOverlay(const uint8 *scriptName) {
if (!ovlData->objData2SourceTable) {
/* releaseScript(scriptIdx,scriptName);
- if(freeIsNeeded)
- {
+ if(freeIsNeeded) {
freePtr(unpackedBuffer);
} */
@@ -501,8 +497,7 @@ int loadOverlay(const uint8 *scriptName) {
}
}
-/* if(freeIsNeeded)
- {
+/* if(freeIsNeeded) {
freePtr(unpackedBuffer);
} */
@@ -701,14 +696,12 @@ int releaseOverlay(const char *name) {
if (!ovlDataPtr)
return -4;
/*
- if(overlayTable[overlayIdx].var1E)
- {
+ if(overlayTable[overlayIdx].var1E) {
free(overlayTable[overlayIdx].var1E);
overlayTable[overlayIdx].var1E = NULL;
}
- if(overlayTable[overlayIdx].var16)
- {
+ if(overlayTable[overlayIdx].var16) {
free(overlayTable[overlayIdx].var16);
overlayTable[overlayIdx].var16 = NULL;
} */
diff --git a/engines/cruise/overlay.h b/engines/cruise/overlay.h
index 03db06fada..5d2e4e890e 100644
--- a/engines/cruise/overlay.h
+++ b/engines/cruise/overlay.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/overlay.h $
- * $Id:overlay.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/perso.cpp b/engines/cruise/perso.cpp
index a95607a2f1..e0cd85f2fe 100644
--- a/engines/cruise/perso.cpp
+++ b/engines/cruise/perso.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/perso.cpp $
- * $Id:perso.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/perso.h b/engines/cruise/perso.h
index 0d5676a4c8..aa9f59a1a3 100644
--- a/engines/cruise/perso.h
+++ b/engines/cruise/perso.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/perso.h $
- * $Id:perso.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/polys.cpp b/engines/cruise/polys.cpp
index 83192b0dda..a2eea8a9a7 100644
--- a/engines/cruise/polys.cpp
+++ b/engines/cruise/polys.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/polys.cpp $
- * $Id:polys.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/polys.h b/engines/cruise/polys.h
index b5da8dd241..53ce4672cd 100644
--- a/engines/cruise/polys.h
+++ b/engines/cruise/polys.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/polys.h $
- * $Id:polys.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/saveload.cpp b/engines/cruise/saveload.cpp
index ffda142e66..189bde1ea1 100644
--- a/engines/cruise/saveload.cpp
+++ b/engines/cruise/saveload.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/saveload.cpp $
- * $Id:saveload.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/saveload.h b/engines/cruise/saveload.h
index de97f24b64..5a719066c5 100644
--- a/engines/cruise/saveload.h
+++ b/engines/cruise/saveload.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/saveload.h $
- * $Id:saveload.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/script.cpp b/engines/cruise/script.cpp
index dc1b12f736..c9ba819d75 100644
--- a/engines/cruise/script.cpp
+++ b/engines/cruise/script.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/script.cpp $
- * $Id:script.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
@@ -73,8 +73,7 @@ int32 opcodeType0(void) {
if (!byte2) {
ptr = scriptDataPtrTable[var_E] + short1;
- } else // TODO:
- {
+ } else { // TODO:
if (!overlayTable[byte2].alreadyLoaded) {
return (-7);
}
@@ -145,8 +144,7 @@ int32 opcodeType0(void) {
if (!byte2) {
ptr = scriptDataPtrTable[var_E] + var_12;
- } else // TODO:
- {
+ } else { // TODO:
if (!overlayTable[byte2].alreadyLoaded) {
return (-7);
}
@@ -635,8 +633,7 @@ uint8 *attacheNewScriptToTail(int16 overlayNumber,
oldTail = scriptHandlePtr;
- while (oldTail->nextScriptPtr) // go to the end of the list
- {
+ while (oldTail->nextScriptPtr) { // go to the end of the list
oldTail = oldTail->nextScriptPtr;
}
@@ -660,8 +657,7 @@ uint8 *attacheNewScriptToTail(int16 overlayNumber,
tempPtr->scriptNumber = param;
tempPtr->overlayNumber = overlayNumber;
- if (scriptType == 20) // Obj or not ?
- {
+ if (scriptType == 20) { // Obj or not ?
tempPtr->sysKey = useArg3Neg;
} else {
tempPtr->sysKey = 1;
diff --git a/engines/cruise/script.h b/engines/cruise/script.h
index ca7d812836..e5d21b1ba0 100644
--- a/engines/cruise/script.h
+++ b/engines/cruise/script.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/script.h $
- * $Id:script.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/stack.cpp b/engines/cruise/stack.cpp
index 7622564503..1639ba3942 100644
--- a/engines/cruise/stack.cpp
+++ b/engines/cruise/stack.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/stack.cpp $
- * $Id:stack.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/stack.h b/engines/cruise/stack.h
index 1adb3540cb..831c07e217 100644
--- a/engines/cruise/stack.h
+++ b/engines/cruise/stack.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/stack.h $
- * $Id:stack.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/stringSupport.cpp b/engines/cruise/stringSupport.cpp
index 54747104ff..791f203d9b 100644
--- a/engines/cruise/stringSupport.cpp
+++ b/engines/cruise/stringSupport.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/stringSupport.cpp $
- * $Id:stringSupport.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/stringSupport.h b/engines/cruise/stringSupport.h
index 531fe56aca..841e2dd496 100644
--- a/engines/cruise/stringSupport.h
+++ b/engines/cruise/stringSupport.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/stringSupport.h $
- * $Id:stringSupport.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/various.cpp b/engines/cruise/various.cpp
index e4c908af5f..5c6134c374 100644
--- a/engines/cruise/various.cpp
+++ b/engines/cruise/various.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/various.cpp $
- * $Id:various.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/various.h b/engines/cruise/various.h
index f6e07e00e7..fe18e5abd6 100644
--- a/engines/cruise/various.h
+++ b/engines/cruise/various.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/various.h $
- * $Id:various.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/vars.cpp b/engines/cruise/vars.cpp
index 1a3d5f0a27..094680f0bb 100644
--- a/engines/cruise/vars.cpp
+++ b/engines/cruise/vars.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/vars.cpp $
- * $Id:vars.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/vars.h b/engines/cruise/vars.h
index 63a15f24e4..dbace8bdf3 100644
--- a/engines/cruise/vars.h
+++ b/engines/cruise/vars.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/vars.h $
- * $Id:vars.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/volume.cpp b/engines/cruise/volume.cpp
index 901ac4a7a5..b32ffb0ccd 100644
--- a/engines/cruise/volume.cpp
+++ b/engines/cruise/volume.cpp
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/volume.cpp $
- * $Id:volume.cpp 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/
diff --git a/engines/cruise/volume.h b/engines/cruise/volume.h
index 7881f6c872..0f9e489236 100644
--- a/engines/cruise/volume.h
+++ b/engines/cruise/volume.h
@@ -18,8 +18,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $URL:https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/branches/gsoc2007-fsnode/engines/cruise/volume.h $
- * $Id:volume.h 26949 2007-05-26 20:23:24Z david_corrales $
+ * $URL$
+ * $Id$
*
*/