From 2c5cdfb37e1264e8985bb4e81d89103a0e46b929 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Fri, 13 Sep 2019 23:20:31 +0100 Subject: SUPERNOVA: Fix Reported MSVC Compiler Warnings These are from Henke37 via IRC. --- engines/supernova/game-manager.cpp | 2 +- engines/supernova/supernova.cpp | 2 +- engines/supernova/supernova2/rooms.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/supernova') 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); -- cgit v1.2.3