diff options
author | Strangerke | 2014-03-30 12:05:43 +0200 |
---|---|---|
committer | Strangerke | 2014-03-30 12:05:43 +0200 |
commit | 30b1bd99eb9ddc847c911bc012b14c3fff66ead9 (patch) | |
tree | 7f8d71300822acbabc546a3e9a47d9d442d6805f /engines | |
parent | fc61e79f29e1f9e734fc05a737849f5952450781 (diff) | |
download | scummvm-rg350-30b1bd99eb9ddc847c911bc012b14c3fff66ead9.tar.gz scummvm-rg350-30b1bd99eb9ddc847c911bc012b14c3fff66ead9.tar.bz2 scummvm-rg350-30b1bd99eb9ddc847c911bc012b14c3fff66ead9.zip |
MADS: Reduce the scope of a variable in scene 208::subAction()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/nebular/nebular_scenes2.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/mads/nebular/nebular_scenes2.cpp b/engines/mads/nebular/nebular_scenes2.cpp index ccf2bb5ca2..2281568250 100644 --- a/engines/mads/nebular/nebular_scenes2.cpp +++ b/engines/mads/nebular/nebular_scenes2.cpp @@ -1531,21 +1531,22 @@ void Scene208::preActions() { } void Scene208::subAction(int mode) { - int nextTrigger; switch (_game._trigger) { - case 0: + case 0: { _game._player._stepEnabled = false; _game._player._visible = false; _globals._spriteIndexes[20] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[5], false, 6, 1, 0, 0); _scene->_sequences.setMsgLayout(_globals._spriteIndexes[20]); + int nextTrigger; if ((mode == 1) || (mode == 2)) nextTrigger = 1; else nextTrigger = 2; _scene->_sequences.addSubEntry(_globals._spriteIndexes[20], SM_0, 0, nextTrigger); + } break; case 1: { @@ -1601,7 +1602,7 @@ void Scene208::subAction(int mode) { break; case 3: - _game._player._visible = true; + _game._player._visible = true; _game._player._stepEnabled = true; break; } |