aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorMatthew Hoops2011-10-04 11:34:15 -0400
committerMatthew Hoops2011-10-04 11:34:15 -0400
commitcbca2812a8078e1d62dc55db5b6429908da3b9da (patch)
tree3847c9a7539a04b83fcbf73f59dcc8fdced15ee4 /engines/pegasus
parent05668dd6846345b2fd3abd0fd4a6f6675c7095ca (diff)
downloadscummvm-rg350-cbca2812a8078e1d62dc55db5b6429908da3b9da.tar.gz
scummvm-rg350-cbca2812a8078e1d62dc55db5b6429908da3b9da.tar.bz2
scummvm-rg350-cbca2812a8078e1d62dc55db5b6429908da3b9da.zip
PEGASUS: Fix turning
Diffstat (limited to 'engines/pegasus')
-rw-r--r--engines/pegasus/neighborhood/neighborhood.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/neighborhood/neighborhood.cpp b/engines/pegasus/neighborhood/neighborhood.cpp
index e5d29f0950..5076cf5b2c 100644
--- a/engines/pegasus/neighborhood/neighborhood.cpp
+++ b/engines/pegasus/neighborhood/neighborhood.cpp
@@ -268,7 +268,7 @@ tDirectionConstant Neighborhood::getTurnEntry(const tRoomID room, const tDirecti
if (turnEntry.isEmpty())
turnEntry = _turnTable.findEntry(room, direction, turnDirection, kNoAlternateID);
- return turnEntry.turnDirection;
+ return turnEntry.endDirection;
}
void Neighborhood::findSpotEntry(const tRoomID room, const tDirectionConstant direction, tSpotFlags flags, SpotTable::Entry &spotEntry) {