diff options
author | Arnaud Boutonné | 2011-02-03 18:25:38 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2011-02-03 18:25:38 +0000 |
commit | 935b3187982afb8a8c1aebded8b5ddc607e27f0f (patch) | |
tree | 96e092ef06cb439f25db0b91ab43be653c8756a6 /engines/hugo/intro.cpp | |
parent | 38444a3712543f60f5daf8106ef3b2d66c6f9ab9 (diff) | |
download | scummvm-rg350-935b3187982afb8a8c1aebded8b5ddc607e27f0f.tar.gz scummvm-rg350-935b3187982afb8a8c1aebded8b5ddc607e27f0f.tar.bz2 scummvm-rg350-935b3187982afb8a8c1aebded8b5ddc607e27f0f.zip |
HUGO: Suppress static variables (except one)
This also fixes the multiple-RTL related music bug reported by D. Gray
svn-id: r55758
Diffstat (limited to 'engines/hugo/intro.cpp')
-rw-r--r-- | engines/hugo/intro.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hugo/intro.cpp b/engines/hugo/intro.cpp index bc9f2d1394..3a958a2988 100644 --- a/engines/hugo/intro.cpp +++ b/engines/hugo/intro.cpp @@ -57,6 +57,7 @@ void intro_v1d::preNewGame() { } void intro_v1d::introInit() { + _introState = 0; introTicks = 0; surf.w = 320; surf.h = 200; @@ -66,14 +67,13 @@ void intro_v1d::introInit() { } bool intro_v1d::introPlay() { - static int state = 0; byte introSize = _vm->getIntroSize(); if (_vm->getGameStatus().skipIntroFl) return true; if (introTicks < introSize) { - switch (state++) { + switch (_introState++) { case 0: _vm->_screen->drawRectangle(true, 0, 0, 319, 199, _TMAGENTA); _vm->_screen->drawRectangle(true, 10, 10, 309, 189, _TBLACK); |