aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2014-01-03 07:56:18 +0100
committerStrangerke2014-01-03 07:56:18 +0100
commitea52bcd28218cf8d9e3e81c4d7993372e4644aeb (patch)
treebf0aeffddbdbbd220cde45649d0b348822b4ca7f /engines
parente73ee457179330cfbc3795a155a56b448afc0170 (diff)
downloadscummvm-rg350-ea52bcd28218cf8d9e3e81c4d7993372e4644aeb.tar.gz
scummvm-rg350-ea52bcd28218cf8d9e3e81c4d7993372e4644aeb.tar.bz2
scummvm-rg350-ea52bcd28218cf8d9e3e81c4d7993372e4644aeb.zip
TSAGE: Fix CID 1004060 - Logically dead code
Diffstat (limited to 'engines')
-rw-r--r--engines/tsage/core.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 7f27c43a22..16fe45044b 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -2964,8 +2964,9 @@ void SceneObjectList::draw() {
g_globals->_sceneManager._sceneBgOffset.y);
}
- // Set up the flag mask
- uint32 flagMask = (paneNum == 0) ? OBJFLAG_PANE_0 : OBJFLAG_PANE_1;
+ // Set up the flag mask. Currently, paneNum is always set to 0, so the check is meaningless
+ // uint32 flagMask = (paneNum == 0) ? OBJFLAG_PANE_0 : OBJFLAG_PANE_1;
+ uint32 flagMask = OBJFLAG_PANE_0;
// Initial loop to set up object list and update object position, priority, and flags
for (SynchronizedList<SceneObject *>::iterator i = g_globals->_sceneObjects->begin();