aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorStrangerke2015-11-23 01:07:28 +0100
committerStrangerke2015-11-23 01:07:28 +0100
commit92b63ca70a0367f1b5d900dc628861d3df77a158 (patch)
treeb3a2c42df15609de4fefa7ab92dbe5d4b9c4a1ef /engines/mads
parent767ce0ddc06ba1d499347f1bccc99d6892b87136 (diff)
downloadscummvm-rg350-92b63ca70a0367f1b5d900dc628861d3df77a158.tar.gz
scummvm-rg350-92b63ca70a0367f1b5d900dc628861d3df77a158.tar.bz2
scummvm-rg350-92b63ca70a0367f1b5d900dc628861d3df77a158.zip
MADS: Phantom: reduce the scope of a variable
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/phantom/phantom_scenes5.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/mads/phantom/phantom_scenes5.cpp b/engines/mads/phantom/phantom_scenes5.cpp
index 508f2b936d..2daaed9a90 100644
--- a/engines/mads/phantom/phantom_scenes5.cpp
+++ b/engines/mads/phantom/phantom_scenes5.cpp
@@ -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);
@@ -1748,6 +1746,7 @@ void Scene502::handlePanelAnimation() {
break;
}
+ int puzzleSolvedFl = true;
for (int i = 0; i < 16; i++) {
if (_puzzlePictures[i] != 1)
puzzleSolvedFl = false;