Skip to content

Commit

Permalink
MADS: Phantom: reduce the scope of a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Nov 23, 2015
1 parent 767ce0d commit 92b63ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engines/mads/phantom/phantom_scenes5.cpp
Expand Up @@ -1495,8 +1495,6 @@ void Scene502::getPanelInfo(Common::Point *walkToPos, int *panel, Common::Point
}

void Scene502::handlePanelAnimation() {
int puzzleSolvedFl = true;

switch (_game._trigger) {
case 110:
_vm->_sound->command(65);
Expand Down Expand Up @@ -1748,6 +1746,7 @@ void Scene502::handlePanelAnimation() {
break;
}

int puzzleSolvedFl = true;
for (int i = 0; i < 16; i++) {
if (_puzzlePictures[i] != 1)
puzzleSolvedFl = false;
Expand Down

0 comments on commit 92b63ca

Please sign in to comment.