Skip to content

Commit

Permalink
TSAGE: Fix CID 1004060 - Logically dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jan 3, 2014
1 parent e73ee45 commit ea52bcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engines/tsage/core.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit ea52bcd

Please sign in to comment.