[Scummvm-cvs-logs] SF.net SVN: scummvm:[34995] scummvm/trunk/engines/tucker
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Mon Nov 10 22:56:27 CET 2008
Revision: 34995
http://scummvm.svn.sourceforge.net/scummvm/?rev=34995&view=rev
Author: thebluegr
Date: 2008-11-10 21:56:27 +0000 (Mon, 10 Nov 2008)
Log Message:
-----------
Silenced MSVC warnings about uninitialized variables
Modified Paths:
--------------
scummvm/trunk/engines/tucker/locations.cpp
scummvm/trunk/engines/tucker/sequences.cpp
scummvm/trunk/engines/tucker/tucker.cpp
Modified: scummvm/trunk/engines/tucker/locations.cpp
===================================================================
--- scummvm/trunk/engines/tucker/locations.cpp 2008-11-10 21:53:39 UTC (rev 34994)
+++ scummvm/trunk/engines/tucker/locations.cpp 2008-11-10 21:56:27 UTC (rev 34995)
@@ -755,7 +755,7 @@
}
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::updateSprite_locationNum13(int i) {
- int state;
+ int state = 0;
if (_csDataHandled) {
if (_flagsTable[202] == 0) {
_flagsTable[202] = 1;
@@ -1103,7 +1103,7 @@
}
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_2(int i) {
- int state;
+ int state = 0;
if (_flagsTable[210] == 0) {
if (_charSpeechSoundCounter > 0 && _actionCharacterNum == i) {
_spritesTable[i].needUpdate = 1;
Modified: scummvm/trunk/engines/tucker/sequences.cpp
===================================================================
--- scummvm/trunk/engines/tucker/sequences.cpp 2008-11-10 21:53:39 UTC (rev 34994)
+++ scummvm/trunk/engines/tucker/sequences.cpp 2008-11-10 21:56:27 UTC (rev 34995)
@@ -324,7 +324,7 @@
copyMapRect(220, 0, 100, 180);
}
_fadePaletteCounter = 0;
- int xPos, yPos, textNum = 0;
+ int xPos = 0, yPos = 0, textNum = 0;
do {
waitForTimer(2);
updateMouseState();
Modified: scummvm/trunk/engines/tucker/tucker.cpp
===================================================================
--- scummvm/trunk/engines/tucker/tucker.cpp 2008-11-10 21:53:39 UTC (rev 34994)
+++ scummvm/trunk/engines/tucker/tucker.cpp 2008-11-10 21:56:27 UTC (rev 34995)
@@ -1749,9 +1749,9 @@
}
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 @@
var8 = 999;
}
}
- int num;
+ int num = 0;
if (var8 == 999 || (_characterFacingDirection != _characterPrevFacingDirection && _characterFacingDirection < 5)) {
_mirroredDrawing = 0;
if (_characterFacingDirection == 6) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list