aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/ctp.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2009-07-06 02:46:59 +0000
committerPaul Gilbert2009-07-06 02:46:59 +0000
commit08df8dc2721808c7019f49d9051e2eebfe8dad9c (patch)
tree47a30bb4f5acdd2f58e255ee0eea587e4e8e0dd4 /engines/cruise/ctp.cpp
parentc3d9acf309c8616bdf99ebfc8236a984a08de323 (diff)
downloadscummvm-rg350-08df8dc2721808c7019f49d9051e2eebfe8dad9c.tar.gz
scummvm-rg350-08df8dc2721808c7019f49d9051e2eebfe8dad9c.tar.bz2
scummvm-rg350-08df8dc2721808c7019f49d9051e2eebfe8dad9c.zip
Bugfix for node enabling/disabling, which was previously allowing the player to walk through closed doors and into the walls
svn-id: r42162
Diffstat (limited to 'engines/cruise/ctp.cpp')
-rw-r--r--engines/cruise/ctp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cruise/ctp.cpp b/engines/cruise/ctp.cpp
index be4639af4d..11d5f582ed 100644
--- a/engines/cruise/ctp.cpp
+++ b/engines/cruise/ctp.cpp
@@ -209,9 +209,9 @@ int setNodeState(int nodeIdx, int nodeState) {
int oldState = walkboxState[nodeIdx];
if (nodeState == -1)
- return
+ return oldState;
- walkboxState[nodeIdx] = nodeState;
+ walkboxState[nodeIdx] = nodeState;
return oldState;
}