diff options
author | Strangerke | 2013-11-10 23:16:08 +0100 |
---|---|---|
committer | Strangerke | 2013-11-10 23:16:08 +0100 |
commit | fceec74e4b2158aebbb1909458d828f3038a41d2 (patch) | |
tree | 59a4b68889d441e26c29c115d9a43d44c2006fd1 /engines/tsage/ringworld2/ringworld2_scenes3.cpp | |
parent | 784796779893f5fa280f634139aceff7324514df (diff) | |
download | scummvm-rg350-fceec74e4b2158aebbb1909458d828f3038a41d2.tar.gz scummvm-rg350-fceec74e4b2158aebbb1909458d828f3038a41d2.tar.bz2 scummvm-rg350-fceec74e4b2158aebbb1909458d828f3038a41d2.zip |
TSAGE: R2R - Some renaming, remove a dead variable
Diffstat (limited to 'engines/tsage/ringworld2/ringworld2_scenes3.cpp')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes3.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes3.cpp b/engines/tsage/ringworld2/ringworld2_scenes3.cpp index 0f553a6dd8..d7ee79906a 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes3.cpp +++ b/engines/tsage/ringworld2/ringworld2_scenes3.cpp @@ -3078,15 +3078,15 @@ void Scene3500::Action1::signal() { } // Get the new direction starting on - int var8 = (scene->_action1._direction * 2 + scene->_mazeDirection); - if (var8 > MAZEDIR_NORTHWEST) - var8 = MAZEDIR_NORTH; - else if (var8 < MAZEDIR_NORTH) - var8 = MAZEDIR_WEST; + int direction = (scene->_action1._direction * 2 + scene->_mazeDirection); + if (direction > MAZEDIR_NORTHWEST) + direction = MAZEDIR_NORTH; + else if (direction < MAZEDIR_NORTH) + direction = MAZEDIR_WEST; // Check whether movement is allowed in that direction. If so, then // movement is started again - switch (var8) { + switch (direction) { case MAZEDIR_NORTH: if ( ((cellId != 2) && (cellId != 3) && (cellId != 6) && (cellId != 1) && (cellId != 23) && (cellId != 24) && (cellId != 4) && (cellId != 11)) || (var6 != 0)) { |