diff options
author | Strangerke | 2015-11-23 01:07:28 +0100 |
---|---|---|
committer | Strangerke | 2015-11-23 01:07:28 +0100 |
commit | 92b63ca70a0367f1b5d900dc628861d3df77a158 (patch) | |
tree | b3a2c42df15609de4fefa7ab92dbe5d4b9c4a1ef /engines/mads | |
parent | 767ce0ddc06ba1d499347f1bccc99d6892b87136 (diff) | |
download | scummvm-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.cpp | 3 |
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; |