diff options
author | Joseph-Eugene Winzer | 2017-12-21 07:02:33 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:44 +0000 |
commit | b6bb1f9709e345add857ac0a2bcd6a926d6133d5 (patch) | |
tree | 11a8c20236cbdd8bbef509dcf7d46fc73b1a170e /engines | |
parent | d90fa9d74513d03884f289c92f588957a14334a4 (diff) | |
download | scummvm-rg350-b6bb1f9709e345add857ac0a2bcd6a926d6133d5.tar.gz scummvm-rg350-b6bb1f9709e345add857ac0a2bcd6a926d6133d5.tar.bz2 scummvm-rg350-b6bb1f9709e345add857ac0a2bcd6a926d6133d5.zip |
SUPERNOVA: Corrects max value for int32
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/rooms.cpp | 2 | ||||
-rw-r--r-- | engines/supernova/state.cpp | 4 | ||||
-rw-r--r-- | engines/supernova/supernova.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp index 3a32579e8f..71753719e8 100644 --- a/engines/supernova/rooms.cpp +++ b/engines/supernova/rooms.cpp @@ -2745,7 +2745,7 @@ bool AxacussBcorridor::interact(Action verb, Object &obj1, Object &obj2) { if (!_gm->_rooms[OFFICE_L1 + obj1._id - DOOR1]->isSectionVisible(4)) _gm->search(180); else - _gm->_state._eventTime = 0xffffffff; + _gm->_state._eventTime = 0x7FFFFFF; } } else if (((verb == ACTION_WALK) || ((verb == ACTION_OPEN) && !obj1.hasProperty(OPENED))) && (obj1._id >= DOOR1) && (obj1._id <= DOOR4) && diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 8871721065..3f9f38aee1 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -368,7 +368,7 @@ void GameManager::initState() { _state._time = ticksToMsec(916364); // 2 pm _state._timeSleep = 0; _state._timeAlarm = ticksToMsec(458182); // 7 am - _state._eventTime = 0xffffffff; + _state._eventTime = 0x7FFFFFFF; _state._eventCallback = kNoFn; _state._arrivalDaysLeft = 2840; _state._shipEnergyDaysLeft = 2135; @@ -849,7 +849,7 @@ void GameManager::telomat(int nr) { } _rooms[BCORRIDOR]->setSectionVisible(7, true); _rooms[BCORRIDOR]->setSectionVisible(i + 1, true); - _state._eventTime = 0xffffffff; + _state._eventTime = 0x7FFFFFFF; _currentRoom->addSentence(0, 1); } _guiEnabled = true; diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 63694aa30d..b13b52163a 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -186,7 +186,7 @@ void SupernovaEngine::updateEvents() { if (_gm->_state._eventCallback != kNoFn && _gm->_state._time >= _gm->_state._eventTime) { _allowLoadGame = false; _allowSaveGame = false; - _gm->_state._eventTime = 0xffffffff; + _gm->_state._eventTime = 0x7FFFFFFF; EventFunction fn = _gm->_state._eventCallback; _gm->_state._eventCallback = kNoFn; switch (fn) { |