diff options
author | Paul Gilbert | 2011-07-15 21:25:03 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-07-15 21:25:03 +1000 |
commit | b74e1b6af026bf0420e548e7d63e11968041e9a2 (patch) | |
tree | b5a6aef5fa9f11bb3912ff7bc3bc32643b7e44e6 /engines/cge | |
parent | 11fa6b941c520129c017c946474114afa71fe41f (diff) | |
download | scummvm-rg350-b74e1b6af026bf0420e548e7d63e11968041e9a2.tar.gz scummvm-rg350-b74e1b6af026bf0420e548e7d63e11968041e9a2.tar.bz2 scummvm-rg350-b74e1b6af026bf0420e548e7d63e11968041e9a2.zip |
CGE: Pathfinder now works
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/walk.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cge/walk.cpp b/engines/cge/walk.cpp index 0e31e2e541..b35864f16e 100644 --- a/engines/cge/walk.cpp +++ b/engines/cge/walk.cpp @@ -282,9 +282,9 @@ bool WALK::find1Way(Cluster c) { // Recursively check for further paths ++_level; - ++c.cell(); + ++start.cell(); bool foundPath = find1Way(c); - --c.cell(); + --start.cell(); --_level; if (foundPath) { @@ -292,7 +292,7 @@ bool WALK::find1Way(Cluster c) { _trace[_level] = start; return true; } - } while (c.chkBar() && !c.cell()); + } while (!c.chkBar() && !c.cell()); } return false; |