aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/scene.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2007-08-31 13:11:26 +0000
committerJohannes Schickel2007-08-31 13:11:26 +0000
commit318c8a1d472ad329f352c39fd87c6cfb376ec4fb (patch)
tree45a2b1984f91988c0f93753ef47223fc65635600 /engines/kyra/scene.cpp
parent89e10f450fa29513e01941b49ca80826322ff380 (diff)
downloadscummvm-rg350-318c8a1d472ad329f352c39fd87c6cfb376ec4fb.tar.gz
scummvm-rg350-318c8a1d472ad329f352c39fd87c6cfb376ec4fb.tar.bz2
scummvm-rg350-318c8a1d472ad329f352c39fd87c6cfb376ec4fb.zip
Fix for bug #1784937 ("KYRA: Wrong path for Brandon in starting location").
svn-id: r28773
Diffstat (limited to 'engines/kyra/scene.cpp')
-rw-r--r--engines/kyra/scene.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/kyra/scene.cpp b/engines/kyra/scene.cpp
index bf85ab1474..22cf2e0f2b 100644
--- a/engines/kyra/scene.cpp
+++ b/engines/kyra/scene.cpp
@@ -65,11 +65,11 @@ int KyraEngine::findWay(int x, int y, int toX, int toY, int *moveTable, int move
return 0x7D00;
}
// debug drawing
- //if (curX >= 0 && curY >= 0 && curX < 320 && curY < 200) {
- // _screen->setPagePixel(0, curX, curY, 11);
- // _screen->updateScreen();
- // waitTicks(5);
- //}
+ /*if (curX >= 0 && curY >= 0 && curX < 320 && curY < 200) {
+ screen()->setPagePixel(0, curX, curY, 11);
+ screen()->updateScreen();
+ //waitTicks(5);
+ }*/
moveTable[lastUsedEntry++] = newFacing;
x = curX;
y = curY;
@@ -81,11 +81,11 @@ int KyraEngine::findWay(int x, int y, int toX, int toY, int *moveTable, int move
newFacing = getFacingFromPointToPoint(curX, curY, toX, toY);
changePosTowardsFacing(curX, curY, newFacing);
// debug drawing
- //if (curX >= 0 && curY >= 0 && curX < 320 && curY < 200) {
- // _screen->setPagePixel(0, curX, curY, 8);
- // _screen->updateScreen();
- // waitTicks(5);
- //}
+ /*if (curX >= 0 && curY >= 0 && curX < 320 && curY < 200) {
+ screen()->setPagePixel(0, curX, curY, 8);
+ screen()->updateScreen();
+ //waitTicks(5);
+ }*/
if (!lineIsPassable(curX, curY)) {
if (curX != toX || curY != toY)