diff options
author | Paul Gilbert | 2017-02-21 22:54:42 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-02-21 22:54:42 -0500 |
commit | d27aba0bbe77698be5fe6e0211deffb733ca8494 (patch) | |
tree | 29c87844d027d9ed00342520004a996e5dcc2ed9 /engines/titanic/game/end_explode_ship.cpp | |
parent | 2857acb14a036a78ee71f8ac1cc3bb375859c0d8 (diff) | |
download | scummvm-rg350-d27aba0bbe77698be5fe6e0211deffb733ca8494.tar.gz scummvm-rg350-d27aba0bbe77698be5fe6e0211deffb733ca8494.tar.bz2 scummvm-rg350-d27aba0bbe77698be5fe6e0211deffb733ca8494.zip |
TITANIC: Cleanup and renaming for endgame classes
Diffstat (limited to 'engines/titanic/game/end_explode_ship.cpp')
-rw-r--r-- | engines/titanic/game/end_explode_ship.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/titanic/game/end_explode_ship.cpp b/engines/titanic/game/end_explode_ship.cpp index 10c80f5863..6253a4df02 100644 --- a/engines/titanic/game/end_explode_ship.cpp +++ b/engines/titanic/game/end_explode_ship.cpp @@ -33,25 +33,25 @@ END_MESSAGE_MAP() void CEndExplodeShip::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); - file->writeNumberLine(_value1, indent); - file->writeNumberLine(_value2, indent); + file->writeNumberLine(_isExploding, indent); + file->writeNumberLine(_unused5, indent); CGameObject::save(file, indent); } void CEndExplodeShip::load(SimpleFile *file) { file->readNumber(); - _value1 = file->readNumber(); - _value2 = file->readNumber(); + _isExploding = file->readNumber(); + _unused5 = file->readNumber(); CGameObject::load(file); } bool CEndExplodeShip::ActMsg(CActMsg *msg) { if (msg->_action == "Arm Bomb") { - _value1 = 1; + _isExploding = true; } else if (msg->_action == "Disarm Bomb") { - _value1 = 0; + _isExploding = false; } else if (msg->_action == "TakeOff") { loadSound("a#31.wav"); loadSound("a#14.wav"); @@ -67,12 +67,12 @@ bool CEndExplodeShip::TimerMsg(CTimerMsg *msg) { setVisible(true); playMovie(0, 449, 0); movieEvent(58); - playMovie(516, _value1 ? 550 : 551, MOVIE_NOTIFY_OBJECT); + playMovie(516, _isExploding ? 550 : 551, MOVIE_NOTIFY_OBJECT); } if (msg->_actionVal == 3) { setGlobalSoundVolume(-4, 2, -1); - CActMsg actMsg(_value1 ? "ExplodeCredits" : "Credits"); + CActMsg actMsg(_isExploding ? "ExplodeCredits" : "Credits"); actMsg.execute("EndGameCredits"); } |