diff options
author | Paul Gilbert | 2017-06-23 21:58:04 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-06-23 21:58:04 -0400 |
commit | 0facd9474edd8af8aac750c8108f074f4931616e (patch) | |
tree | 60b2bd075ddbe35d66af9527c7f9356a8cf4c68a /engines/titanic/game/announce.cpp | |
parent | 5455b81e6ec3cd9853766306bf2002e9358a7527 (diff) | |
download | scummvm-rg350-0facd9474edd8af8aac750c8108f074f4931616e.tar.gz scummvm-rg350-0facd9474edd8af8aac750c8108f074f4931616e.tar.bz2 scummvm-rg350-0facd9474edd8af8aac750c8108f074f4931616e.zip |
TITANIC: Fix state handling for ship announcements
Diffstat (limited to 'engines/titanic/game/announce.cpp')
-rw-r--r-- | engines/titanic/game/announce.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/game/announce.cpp b/engines/titanic/game/announce.cpp index 04b46d5910..762311ba88 100644 --- a/engines/titanic/game/announce.cpp +++ b/engines/titanic/game/announce.cpp @@ -57,7 +57,7 @@ bool CAnnounce::TimerMsg(CTimerMsg *msg) { if (!_enabled) return false; - if (msg->_timerCtr == 1) { + if (msg->_actionVal == 1) { CString numStr = "0"; CString waveNames1[20] = { "z#181.wav", "z#211.wav", "z#203.wav", "z#202.wav", "z#201.wav", @@ -108,7 +108,7 @@ bool CAnnounce::TimerMsg(CTimerMsg *msg) { if (getRandomNumber(3) == 0) addTimer(2, 4000, 0); - } else if (msg->_timerCtr == 2) { + } else if (msg->_actionVal == 2) { CParrotSpeakMsg speakMsg; speakMsg._target = "Announcements"; speakMsg.execute("PerchedParrot"); |