diff options
author | Strangerke | 2015-01-30 07:28:57 +0100 |
---|---|---|
committer | Strangerke | 2015-01-30 07:28:57 +0100 |
commit | 490eb341fa2ad0a13f599862dab565a1b3612677 (patch) | |
tree | 76c16e36476542c12c5b5b3f62d14492dff739ce /engines | |
parent | 5159a3851b801229dd16bfcc1c4a6662f8d21ad0 (diff) | |
download | scummvm-rg350-490eb341fa2ad0a13f599862dab565a1b3612677.tar.gz scummvm-rg350-490eb341fa2ad0a13f599862dab565a1b3612677.tar.bz2 scummvm-rg350-490eb341fa2ad0a13f599862dab565a1b3612677.zip |
ACCESS: MM - Reduce the scope of a variable, some renaming
Diffstat (limited to 'engines')
-rw-r--r-- | engines/access/martian/martian_game.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/engines/access/martian/martian_game.cpp b/engines/access/martian/martian_game.cpp index fce115f38e..c386c54b9f 100644 --- a/engines/access/martian/martian_game.cpp +++ b/engines/access/martian/martian_game.cpp @@ -209,27 +209,26 @@ bool MartianEngine::showCredits() { _screen->clearScreen(); _destIn = _screen; - int val1 = _creditsStream->readSint16LE(); - int val2 = 0; - int val3 = 0; + int posX = _creditsStream->readSint16LE(); + int posY = 0; - while(val1 != -1) { - val2 = _creditsStream->readSint16LE(); - val3 = _creditsStream->readSint16LE(); - _screen->plotImage(_introObjects, val3, Common::Point(val1, val2)); + while(posX != -1) { + posY = _creditsStream->readSint16LE(); + int frameNum = _creditsStream->readSint16LE(); + _screen->plotImage(_introObjects, frameNum, Common::Point(posX, posY)); - val1 = _creditsStream->readSint16LE(); + posX = _creditsStream->readSint16LE(); } - val2 = _creditsStream->readSint16LE(); - if (val2 == -1) { + posY = _creditsStream->readSint16LE(); + if (posY == -1) { _events->showCursor(); _screen->forceFadeOut(); return true; } _screen->forceFadeIn(); - _timers[3]._timer = _timers[3]._initTm = val2; + _timers[3]._timer = _timers[3]._initTm = posY; while (!shouldQuit() && !_events->isKeyMousePressed() && _timers[3]._timer) { _events->pollEventsAndWait(); |