diff options
-rw-r--r-- | engines/supernova/rooms.cpp | 2 | ||||
-rw-r--r-- | engines/supernova/state.cpp | 4 | ||||
-rw-r--r-- | engines/supernova/state.h | 2 | ||||
-rw-r--r-- | engines/supernova/supernova.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp index 4c35e27e1b..480f74353d 100644 --- a/engines/supernova/rooms.cpp +++ b/engines/supernova/rooms.cpp @@ -2750,7 +2750,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 = INT32_MAX; + _gm->_state._eventTime = kMaxTimerValue; } } 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 6a57610504..50a7fd2223 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -382,7 +382,7 @@ void GameManager::initState() { _state._time = ticksToMsec(916364); // 2 pm _state._timeSleep = 0; _state._timeAlarm = ticksToMsec(458182); // 7 am - _state._eventTime = INT32_MAX; + _state._eventTime = kMaxTimerValue; _state._eventCallback = kNoFn; _state._arrivalDaysLeft = 2840; _state._shipEnergyDaysLeft = 2135; @@ -863,7 +863,7 @@ void GameManager::telomat(int nr) { } _rooms[BCORRIDOR]->setSectionVisible(7, true); _rooms[BCORRIDOR]->setSectionVisible(i + 1, true); - _state._eventTime = INT32_MAX; + _state._eventTime = kMaxTimerValue; _currentRoom->addSentence(0, 1); } _guiEnabled = true; diff --git a/engines/supernova/state.h b/engines/supernova/state.h index 17d11e0533..bb0b933b00 100644 --- a/engines/supernova/state.h +++ b/engines/supernova/state.h @@ -29,7 +29,7 @@ namespace Supernova { -const int32 INT32_MAX = 0x7FFFFFFF; +const int32 kMaxTimerValue = 0x7FFFFFFF; enum EventFunction { kNoFn, kSupernovaFn, kGuardReturnedFn, kGuardWalkFn, kTaxiFn, kSearchStartFn }; diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index a3e939f33d..94fcdf0fad 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -185,7 +185,7 @@ void SupernovaEngine::updateEvents() { if (_gm->_state._eventCallback != kNoFn && _gm->_state._time >= _gm->_state._eventTime) { _allowLoadGame = false; _allowSaveGame = false; - _gm->_state._eventTime = INT32_MAX; + _gm->_state._eventTime = kMaxTimerValue; EventFunction fn = _gm->_state._eventCallback; _gm->_state._eventCallback = kNoFn; switch (fn) { |