diff options
author | Paul Gilbert | 2009-05-28 12:16:23 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-05-28 12:16:23 +0000 |
commit | 2ae183a48326eb8543ff9b7926364b86800c4467 (patch) | |
tree | 82f7a64427dfc5767b1c1fc74f86e5ddf9092a44 /engines | |
parent | 32975b25f4f7ebbf2bfec32675a3505c81b9a8f5 (diff) | |
download | scummvm-rg350-2ae183a48326eb8543ff9b7926364b86800c4467.tar.gz scummvm-rg350-2ae183a48326eb8543ff9b7926364b86800c4467.tar.bz2 scummvm-rg350-2ae183a48326eb8543ff9b7926364b86800c4467.zip |
Fix for pathfinding bug that could occasionally stop the player from moving
svn-id: r40960
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cruise/actor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cruise/actor.cpp b/engines/cruise/actor.cpp index fcc89d15a2..36ba6e4b8b 100644 --- a/engines/cruise/actor.cpp +++ b/engines/cruise/actor.cpp @@ -168,7 +168,7 @@ void polydroite(int x1, int y1, int x2, int y2) { X = modelVar9; Y = modelVar10; - if (flag_obstacle == 0) { + if ((flag_obstacle == 0) || (cx == 0)) { flag_obstacle = 1; return; } @@ -259,7 +259,7 @@ void poly2(int x1, int y1, int x2, int y2) { X = modelVar9; Y = modelVar10; - if (flag_obstacle != 0) { + if ((flag_obstacle != 0) || (cx == 0)) { flag_obstacle = 1; return; } |