aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova
diff options
context:
space:
mode:
authorD G Turner2019-09-13 23:20:31 +0100
committerD G Turner2019-09-13 23:20:31 +0100
commit2c5cdfb37e1264e8985bb4e81d89103a0e46b929 (patch)
tree9b96c0cbe61bc2448730fe6dd12207b8197998fd /engines/supernova
parentc0d6a8fc7a051f31c0cf209b74c213b1d9643ca8 (diff)
downloadscummvm-rg350-2c5cdfb37e1264e8985bb4e81d89103a0e46b929.tar.gz
scummvm-rg350-2c5cdfb37e1264e8985bb4e81d89103a0e46b929.tar.bz2
scummvm-rg350-2c5cdfb37e1264e8985bb4e81d89103a0e46b929.zip
SUPERNOVA: Fix Reported MSVC Compiler Warnings
These are from Henke37 via IRC.
Diffstat (limited to 'engines/supernova')
-rw-r--r--engines/supernova/game-manager.cpp2
-rw-r--r--engines/supernova/supernova.cpp2
-rw-r--r--engines/supernova/supernova2/rooms.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/supernova/game-manager.cpp b/engines/supernova/game-manager.cpp
index bf4cbc69c8..7e44882de2 100644
--- a/engines/supernova/game-manager.cpp
+++ b/engines/supernova/game-manager.cpp
@@ -834,7 +834,7 @@ void GameManager::edit(Common::String &input, int x, int y, uint length) {
bool isEditing = true;
uint cursorIndex = input.size();
// NOTE: Pixels for char needed = kFontWidth + 2px left and right side bearing
- int overdrawWidth;
+ int overdrawWidth = 0;
Color background = kColorBlack;
if (_vm->_MSPart == 1) {
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index b8c9adbec0..41f05edb7e 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -475,7 +475,7 @@ Common::SeekableReadStream *SupernovaEngine::getBlockFromDatFile(Common::String
return nullptr;
}
- uint32 gameBlockSize;
+ uint32 gameBlockSize = 0;
while (!f.eos()) {
int part = f.readByte();
gameBlockSize = f.readUint32LE();
diff --git a/engines/supernova/supernova2/rooms.cpp b/engines/supernova/supernova2/rooms.cpp
index b058f047cc..cc4ab858b4 100644
--- a/engines/supernova/supernova2/rooms.cpp
+++ b/engines/supernova/supernova2/rooms.cpp
@@ -3582,7 +3582,7 @@ bool BstDoor::interact(Action verb, Object &obj1, Object &obj2) {
_vm->renderImage(number);
_vm->playSound(kAudioTaxiOpen);
for (number = 1; number <= 16; number++) {
- if (isSectionVisible(number) != _password[number - 1])
+ if (isSectionVisible(number) != (bool)_password[number - 1])
return true;
}
_gm->wait(2);