diff options
author | Joseph-Eugene Winzer | 2018-03-11 23:13:36 +0100 |
---|---|---|
committer | Joseph-Eugene Winzer | 2018-04-14 11:45:52 +0200 |
commit | dc38d6a8cde47e634bc1c869dbbed476ae34017c (patch) | |
tree | 9dff66a8efec376dd41059249b3ee5de6c2c8b85 /engines/supernova | |
parent | 3c81c61df9647ca00c558b6f4f8e51e8b3f308e9 (diff) | |
download | scummvm-rg350-dc38d6a8cde47e634bc1c869dbbed476ae34017c.tar.gz scummvm-rg350-dc38d6a8cde47e634bc1c869dbbed476ae34017c.tar.bz2 scummvm-rg350-dc38d6a8cde47e634bc1c869dbbed476ae34017c.zip |
SUPERNOVA: Renames _timer1 to _messageDuration
Diffstat (limited to 'engines/supernova')
-rw-r--r-- | engines/supernova/rooms.cpp | 16 | ||||
-rw-r--r-- | engines/supernova/state.cpp | 32 | ||||
-rw-r--r-- | engines/supernova/state.h | 2 | ||||
-rw-r--r-- | engines/supernova/supernova.cpp | 2 |
4 files changed, 26 insertions, 26 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp index 1899fcfd36..ad42a171a2 100644 --- a/engines/supernova/rooms.cpp +++ b/engines/supernova/rooms.cpp @@ -860,10 +860,10 @@ void ShipSleepCabin::animation() { void ShipSleepCabin::onEntrance() { if (_gm->_state._dream && (_gm->_rooms[CAVE]->getObject(1)->_exitRoom == MEETUP3)) { _vm->renderMessage(kStringShipSleepCabin14); - _gm->waitOnInput(_gm->_timer1); + _gm->waitOnInput(_gm->_messageDuration); _vm->removeMessage(); _vm->renderMessage(kStringShipSleepCabin15); - _gm->waitOnInput(_gm->_timer1); + _gm->waitOnInput(_gm->_messageDuration); _vm->removeMessage(); _vm->renderMessage(kStringShipSleepCabin16); _gm->_state._dream = false; @@ -1782,7 +1782,7 @@ bool ArsanoEntrance::interact(Action verb, Object &obj1, Object &obj2) { _vm->renderMessage(kStringArsanoEntrance20); else { _vm->renderMessage(kStringArsanoEntrance21); - _gm->waitOnInput(_gm->_timer1); + _gm->waitOnInput(_gm->_messageDuration); _vm->removeMessage(); _vm->renderMessage(kStringArsanoEntrance22); _gm->takeObject(*getObject(16)); @@ -1829,7 +1829,7 @@ bool ArsanoEntrance::interact(Action verb, Object &obj1, Object &obj2) { _gm->_rooms[AIRLOCK]->getObject(4)->setProperty(WORN); _gm->_rooms[AIRLOCK]->getObject(5)->setProperty(WORN); _gm->_rooms[AIRLOCK]->getObject(6)->setProperty(WORN); - _gm->waitOnInput(_gm->_timer1); + _gm->waitOnInput(_gm->_messageDuration); _vm->removeMessage(); } return false; @@ -2100,7 +2100,7 @@ bool ArsanoRoger::interact(Action verb, Object &obj1, Object &obj2) { _vm->_menuBrightness = 255; _vm->paletteBrightness(); _vm->renderMessage(kStringArsanoRoger39); - _gm->waitOnInput(_gm->_timer1); + _gm->waitOnInput(_gm->_messageDuration); _vm->removeMessage(); _vm->_menuBrightness = 0; _vm->paletteBrightness(); @@ -2117,7 +2117,7 @@ bool ArsanoRoger::interact(Action verb, Object &obj1, Object &obj2) { getObject(6)->_click = 7; _vm->paletteFadeIn(); _vm->renderMessage(kStringArsanoRoger40); - _gm->waitOnInput(_gm->_timer1); + _gm->waitOnInput(_gm->_messageDuration); _vm->removeMessage(); } else return false; @@ -2297,7 +2297,7 @@ bool ArsanoMeetup2::interact(Action verb, Object &obj1, Object &obj2) { _gm->wait(18); _vm->renderMessage(kStringArsanoMeetup2_12); _gm->great(0); - _gm->waitOnInput(_gm->_timer1); + _gm->waitOnInput(_gm->_messageDuration); _vm->removeMessage(); _vm->paletteFadeOut(); g_system->fillScreen(kColorBlack); @@ -3210,7 +3210,7 @@ bool AxacussElevator::interact(Action verb, Object &obj1, Object &obj2) { _vm->_menuBrightness = 255; _vm->paletteBrightness(); _vm->renderMessage(kStringAxacussElevator_3); - _gm->waitOnInput(_gm->_timer1); + _gm->waitOnInput(_gm->_messageDuration); _vm->removeMessage(); _vm->_menuBrightness = 0; _vm->paletteBrightness(); diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index bbba0eb086..08b6d2b63a 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -370,7 +370,7 @@ void GameManager::initState() { _oldTime = g_system->getMillis(); _timerPaused = 0; _timePaused = false; - _timer1 = 0; + _messageDuration = 0; _animationTimer = 0; _currentSentence = -1; @@ -913,7 +913,7 @@ void GameManager::telomat(int nr) { _vm->renderRoom(*_currentRoom); _vm->paletteBrightness(); _vm->renderMessage(kStringTelomat17, kMessageTop, name2[i]); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); if (_state._nameSeen[nr]) { Common::String string = _vm->getGameString(kStringTelomat2); @@ -925,7 +925,7 @@ void GameManager::telomat(int nr) { switch (dialog(3, rows1, dial1, 1)) { case 1: _vm->renderMessage(kStringTelomat18, kMessageTop); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); if ((_state._destination == 255) && !_rooms[BCORRIDOR]->isSectionVisible(7)) { _state._eventTime = _state._time + ticksToMsec(150); @@ -935,7 +935,7 @@ void GameManager::telomat(int nr) { } break; case 0: _vm->renderMessage(kStringTelomat19, kMessageTop); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); if (dialog(4, rows2, dial2, 0) != 3) { wait(10); @@ -1099,7 +1099,7 @@ void GameManager::supernovaEvent() { CursorMan.showMouse(false); if (_currentRoom->getId() <= CAVE) { _vm->renderMessage(kStringSupernova1); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->paletteFadeOut(); changeRoom(MEETUP); @@ -1112,7 +1112,7 @@ void GameManager::supernovaEvent() { _vm->paletteFadeIn(); } _vm->renderMessage(kStringSupernova2); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->setCurrentImage(26); _vm->renderImage(0); @@ -1125,23 +1125,23 @@ void GameManager::supernovaEvent() { if (_currentRoom->getId() == GLIDER) { _vm->renderMessage(kStringSupernova3); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->_menuBrightness = 0; _vm->paletteBrightness(); _vm->renderRoom(*_currentRoom); _vm->paletteFadeIn(); _vm->renderMessage(kStringSupernova4, kMessageTop); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->renderMessage(kStringSupernova5, kMessageTop); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->renderMessage(kStringSupernova6, kMessageTop); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->renderMessage(kStringSupernova7, kMessageTop); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); changeRoom(MEETUP2); _rooms[MEETUP2]->setSectionVisible(1, true); @@ -1151,7 +1151,7 @@ void GameManager::supernovaEvent() { _inventory.remove(*(_rooms[ROGER]->getObject(8))); } else { _vm->renderMessage(kStringSupernova8); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->_menuBrightness = 0; _vm->paletteBrightness(); @@ -1995,10 +1995,10 @@ bool GameManager::genericInteract(Action verb, Object &obj1, Object &obj2) { } } else if ((verb == ACTION_LOOK) && (obj1._id == NEWSPAPER)) { _vm->renderMessage(kStringGenericInteract_10); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->renderMessage(kStringGenericInteract_11); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->setCurrentImage(2); _vm->renderImage(0); @@ -2196,7 +2196,7 @@ bool GameManager::genericInteract(Action verb, Object &obj1, Object &obj2) { _vm->renderMessage(kStringGenericInteract_30); else if ((verb == ACTION_LOOK) && (obj1._id == BOOK2)) { _vm->renderMessage(kStringGenericInteract_31); - waitOnInput(_timer1); + waitOnInput(_messageDuration); _vm->removeMessage(); _vm->renderMessage(kStringGenericInteract_32); } else @@ -2406,7 +2406,7 @@ void GameManager::alarmSound() { _vm->removeMessage(); _vm->renderMessage(kStringAlarm); - int32 end = _state._time + ticksToMsec(_timer1); + int32 end = _state._time + ticksToMsec(_messageDuration); do { _vm->playSound(kAudioAlarm); while (_vm->_mixer->isSoundHandleActive(_vm->_soundHandle)) { diff --git a/engines/supernova/state.h b/engines/supernova/state.h index 774bcc67e9..b805369160 100644 --- a/engines/supernova/state.h +++ b/engines/supernova/state.h @@ -157,7 +157,7 @@ public: int32 _oldTime; uint _timePaused; bool _timerPaused; - int32 _timer1; + int32 _messageDuration; int32 _animationTimer; int _inventoryScroll; int _exitList[25]; diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index c3e4223947..248fb2a818 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -550,7 +550,7 @@ void SupernovaEngine::renderMessage(const char *text, MessagePosition position) } _messageDisplayed = true; - _gm->_timer1 = (Common::strnlen(text, 512) + 20) * _textSpeed / 10; + _gm->_messageDuration = (Common::strnlen(text, 512) + 20) * _textSpeed / 10; } void SupernovaEngine::removeMessage() { |