diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tucker/locations.cpp | 8 | ||||
-rw-r--r-- | engines/tucker/sequences.cpp | 2 | ||||
-rw-r--r-- | engines/tucker/tucker.cpp | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp index 92d4f68038..7f0392a37a 100644 --- a/engines/tucker/locations.cpp +++ b/engines/tucker/locations.cpp @@ -755,7 +755,7 @@ void TuckerEngine::execData3PostUpdate_locationNum9() { } void TuckerEngine::updateSprite_locationNum10() { - int state; + int state = 0; const int r = getRandomNumber(); if (_flagsTable[99] == 1) { state = -1; @@ -913,7 +913,7 @@ void TuckerEngine::execData3PreUpdate_locationNum12() { } void TuckerEngine::updateSprite_locationNum13(int i) { - int state; + int state = 0; if (_csDataHandled) { if (_flagsTable[202] == 0) { _flagsTable[202] = 1; @@ -1103,7 +1103,7 @@ void TuckerEngine::execData3PreUpdate_locationNum15() { } void TuckerEngine::updateSprite_locationNum16_0(int i) { - int state; + int state = 0; int r = getRandomNumber(); if (_flagsTable[210] > 0) { state = -1; @@ -1430,7 +1430,7 @@ void TuckerEngine::updateSprite_locationNum23_1(int i) { } void TuckerEngine::updateSprite_locationNum23_2(int i) { - int state; + int state = 0; if (_flagsTable[210] == 0) { if (_charSpeechSoundCounter > 0 && _actionCharacterNum == i) { _spritesTable[i].needUpdate = 1; diff --git a/engines/tucker/sequences.cpp b/engines/tucker/sequences.cpp index 780f3c694d..0a1faa4e52 100644 --- a/engines/tucker/sequences.cpp +++ b/engines/tucker/sequences.cpp @@ -324,7 +324,7 @@ void TuckerEngine::handleMapSequence() { copyMapRect(220, 0, 100, 180); } _fadePaletteCounter = 0; - int xPos, yPos, textNum = 0; + int xPos = 0, yPos = 0, textNum = 0; do { waitForTimer(2); updateMouseState(); diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp index c7e45e087f..d97d2ccd61 100644 --- a/engines/tucker/tucker.cpp +++ b/engines/tucker/tucker.cpp @@ -1749,9 +1749,9 @@ bool TuckerEngine::isSpeechSoundPlaying() { } void TuckerEngine::redrawPanelItems() { - const uint8 *src; - uint8 *dst; - int sz; + const uint8 *src = 0; + uint8 *dst = 0; + int sz = 0; if (_forceRedrawPanelItems != 0 || (_redrawPanelItemsCounter != 0 && _panelState == 0)) { _forceRedrawPanelItems = 0; if (_redrawPanelItemsCounter > 0) { @@ -2069,7 +2069,7 @@ void TuckerEngine::updateCharacterAnimation() { var8 = 999; } } - int num; + int num = 0; if (var8 == 999 || (_characterFacingDirection != _characterPrevFacingDirection && _characterFacingDirection < 5)) { _mirroredDrawing = 0; if (_characterFacingDirection == 6) { |