diff options
author | Filippos Karapetis | 2015-12-23 21:44:48 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:43:17 +0100 |
commit | 29d85c8d50967df907f2a12e87ad78abfa707be4 (patch) | |
tree | dccd17f6d9f9329aaa3423d41b0f07bc2805ea74 /engines/lab/intro.cpp | |
parent | b3a19cf75ed30ddbb60fd05223efe6a26087834d (diff) | |
download | scummvm-rg350-29d85c8d50967df907f2a12e87ad78abfa707be4.tar.gz scummvm-rg350-29d85c8d50967df907f2a12e87ad78abfa707be4.tar.bz2 scummvm-rg350-29d85c8d50967df907f2a12e87ad78abfa707be4.zip |
LAB: Use int in for loops, instead of uint16
Diffstat (limited to 'engines/lab/intro.cpp')
-rw-r--r-- | engines/lab/intro.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp index de76c0cbb5..e918987d31 100644 --- a/engines/lab/intro.cpp +++ b/engines/lab/intro.cpp @@ -195,7 +195,7 @@ void Intro::musicDelay() { if (_quitIntro) return; - for (uint16 i = 0; i < 20; i++) { + for (int i = 0; i < 20; i++) { _vm->updateMusicAndEvents(); _vm->waitTOF(); _vm->waitTOF(); @@ -235,7 +235,7 @@ void Intro::introSequence() { } else if (_vm->getPlatform() == Common::kPlatformWindows) { nReadPict("WYRMKEEP"); // Wait 4 seconds - for (uint16 i = 0; i < 4 * 1000 / 10; i++) { + for (int i = 0; i < 4 * 1000 / 10; i++) { introEatMessages(); if (_quitIntro) break; @@ -259,7 +259,7 @@ void Intro::introSequence() { _vm->_graphics->_fadePalette = palette; - for (uint16 i = 0; i < 16; i++) { + for (int i = 0; i < 16; i++) { if (_quitIntro) break; @@ -278,7 +278,7 @@ void Intro::introSequence() { _vm->updateMusicAndEvents(); uint16 temp = palette[2]; - for (uint16 i = 2; i < 15; i++) + for (int i = 2; i < 15; i++) palette[i] = palette[i + 1]; palette[15] = temp; @@ -321,7 +321,7 @@ void Intro::introSequence() { nReadPict("Intro.1"); _vm->_anim->_noPalChange = false; - for (uint16 i = 0; i < 16; i++) { + for (int i = 0; i < 16; i++) { palette[i] = ((_vm->_anim->_diffPalette[i * 3] >> 2) << 8) + ((_vm->_anim->_diffPalette[i * 3 + 1] >> 2) << 4) + (_vm->_anim->_diffPalette[i * 3 + 2] >> 2); @@ -365,8 +365,8 @@ void Intro::introSequence() { doPictText("i.11", msgFont, false); if (!_quitIntro) - for (uint16 i = 0; i < 50; i++) { - for (uint16 idx = (8 * 3); idx < (255 * 3); idx++) + for (int i = 0; i < 50; i++) { + for (int idx = (8 * 3); idx < (255 * 3); idx++) _vm->_anim->_diffPalette[idx] = 255 - _vm->_anim->_diffPalette[idx]; _vm->updateMusicAndEvents(); |