aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/scene_v1.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-12-26 21:19:29 +0100
committerJohannes Schickel2011-12-26 21:34:22 +0100
commit9b51b138db7ccc8dbc55ca200f1a4aff688f6d89 (patch)
treeb72b3dd34a186bc7ec128d82d975715fe1c4c8c4 /engines/kyra/scene_v1.cpp
parent1ba4f0a1a8965ee141987693770d2bcd3b74c292 (diff)
downloadscummvm-rg350-9b51b138db7ccc8dbc55ca200f1a4aff688f6d89.tar.gz
scummvm-rg350-9b51b138db7ccc8dbc55ca200f1a4aff688f6d89.tar.bz2
scummvm-rg350-9b51b138db7ccc8dbc55ca200f1a4aff688f6d89.zip
KYRA: Some formatting fixes.
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;