aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/scene_v1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/scene_v1.cpp')
-rw-r--r--engines/kyra/scene_v1.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/kyra/scene_v1.cpp b/engines/kyra/scene_v1.cpp
index bc90f49002..36798970e3 100644
--- a/engines/kyra/scene_v1.cpp
+++ b/engines/kyra/scene_v1.cpp
@@ -115,7 +115,7 @@ int KyraEngine_v1::findWay(int x, int y, int toX, int toY, int *moveTable, int m
delete[] pathTable2;
return 0x7D00;
}
- memcpy(&moveTable[lastUsedEntry], pathTable1, temp*sizeof(int));
+ memcpy(&moveTable[lastUsedEntry], pathTable1, temp * sizeof(int));
lastUsedEntry += temp;
} else {
if (lastUsedEntry + tempValue > moveTableSize) {
@@ -123,7 +123,7 @@ int KyraEngine_v1::findWay(int x, int y, int toX, int toY, int *moveTable, int m
delete[] pathTable2;
return 0x7D00;
}
- memcpy(&moveTable[lastUsedEntry], pathTable2, tempValue*sizeof(int));
+ memcpy(&moveTable[lastUsedEntry], pathTable2, tempValue * sizeof(int));
lastUsedEntry += tempValue;
}
x = curX;
@@ -161,16 +161,16 @@ int KyraEngine_v1::findSubPath(int x, int y, int toX, int toY, int *moveTable, i
while (position != end) {
int newFacing2 = newFacing;
while (true) {
- changePosTowardsFacing(xpos1, ypos1, facingTable1[start*8 + newFacing2]);
+ changePosTowardsFacing(xpos1, ypos1, facingTable1[start * 8 + newFacing2]);
if (!lineIsPassable(xpos1, ypos1)) {
- if (facingTable1[start*8 + newFacing2] == newFacing)
+ if (facingTable1[start * 8 + newFacing2] == newFacing)
return 0x7D00;
- newFacing2 = facingTable1[start*8 + newFacing2];
+ newFacing2 = facingTable1[start * 8 + newFacing2];
xpos1 = x;
ypos1 = y;
continue;
}
- newFacing = facingTable1[start*8 + newFacing2];
+ newFacing = facingTable1[start * 8 + newFacing2];
break;
}
// debug drawing
@@ -200,7 +200,7 @@ int KyraEngine_v1::findSubPath(int x, int y, int toX, int toY, int *moveTable, i
if (xpos1 == xpos2 && ypos1 == ypos2)
break;
- newFacing = facingTable3[start*8 + newFacing];
+ newFacing = facingTable3[start * 8 + newFacing];
}
return 0x7D00;