diff options
author | Paul Gilbert | 2016-09-10 23:16:15 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-10 23:16:15 -0400 |
commit | 8eaf094bf59a30255f6e981bd9e1c593fc17b2fb (patch) | |
tree | 261f0fad2c6db5d75da682d9c7f43a74fee24a77 /engines/titanic/game/transport | |
parent | cb33eca327414837d9095b7797a1996705fd768f (diff) | |
download | scummvm-rg350-8eaf094bf59a30255f6e981bd9e1c593fc17b2fb.tar.gz scummvm-rg350-8eaf094bf59a30255f6e981bd9e1c593fc17b2fb.tar.bz2 scummvm-rg350-8eaf094bf59a30255f6e981bd9e1c593fc17b2fb.zip |
TITANIC: Move text messages to DAT file
Diffstat (limited to 'engines/titanic/game/transport')
-rw-r--r-- | engines/titanic/game/transport/lift_indicator.cpp | 9 | ||||
-rw-r--r-- | engines/titanic/game/transport/pellerator.cpp | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/engines/titanic/game/transport/lift_indicator.cpp b/engines/titanic/game/transport/lift_indicator.cpp index 7471affc36..10d62a0775 100644 --- a/engines/titanic/game/transport/lift_indicator.cpp +++ b/engines/titanic/game/transport/lift_indicator.cpp @@ -74,9 +74,7 @@ bool CLiftindicator::EnterViewMsg(CEnterViewMsg *msg) { petSetRemoteTarget(); petSetArea(PET_REMOTE); - CString str = CString::format("You are standing outside Elevator %d", - petGetRoomsWellEntry()); - petDisplayMessage(-1, str); + petDisplayMessage(OUTSIDE_ELEVATOR_NUM, petGetRoomsWellEntry()); debugC(kDebugScripts, "Claiming PET - %d, Multiplier = %f", _liftNum, multiplier); @@ -149,14 +147,13 @@ bool CLiftindicator::PETActivateMsg(CPETActivateMsg *msg) { if (msg->_name == "Lift") { if (petDoorOrBellbotPresent()) { - petDisplayMessage(1, "I'm sorry, you cannot enter this elevator at present " - "as a bot is in the way."); + petDisplayMessage(1, BOT_BLOCKING_ELEVATOR); } else { _endFrame = pet->getRoomsFloorNum(); if (petGetRoomsWellEntry() == 4 && !CLift::_v6 && pet->getRoomsFloorNum() != CLift::_elevator4Floor) { - petDisplayMessage(1, "This elevator is currently in an advanced state of non-functionality."); + petDisplayMessage(1, ELEVATOR_NON_FUNCTIONAL); } else { _start = _indicatorPos.y + (int)(_startFrame * multiplier); _end = _indicatorPos.y + (int)(_endFrame * multiplier); diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp index e4af40c334..23c61ad0ba 100644 --- a/engines/titanic/game/transport/pellerator.cpp +++ b/engines/titanic/game/transport/pellerator.cpp @@ -67,9 +67,9 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) { int newDest = msg->_newStatus; if (msg->_newStatus == _destination) { - petDisplayMessage(1, "You are already at your chosen destination."); + petDisplayMessage(1, ALREADY_AT_DESTINATION); } else if (classNum == 3 || (msg->_newStatus > 4 && classNum != 1)) { - petDisplayMessage(1, "Passengers of your class are not permitted to enter this area."); + petDisplayMessage(1, CLASS_NOT_ALLOWED_AT_DEST); } else if (newDest > _destination) { CString name = getName(); changeView(name == "PelleratorObject2" ? |