diff options
author | Paul Gilbert | 2017-02-20 21:15:00 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-02-20 21:15:00 -0500 |
commit | 90e4e8a06403dc54b862cc08676718a29fdf6f94 (patch) | |
tree | b5709060fcc2c6f0cd03e3f1bfe544aae4438b5b /engines/titanic/game/wheel_hotspot.cpp | |
parent | e878332cc4f0581343b794d8a20b396b726e3543 (diff) | |
download | scummvm-rg350-90e4e8a06403dc54b862cc08676718a29fdf6f94.tar.gz scummvm-rg350-90e4e8a06403dc54b862cc08676718a29fdf6f94.tar.bz2 scummvm-rg350-90e4e8a06403dc54b862cc08676718a29fdf6f94.zip |
TITANIC: Initial cleanup & renamings for bridge controls
Diffstat (limited to 'engines/titanic/game/wheel_hotspot.cpp')
-rw-r--r-- | engines/titanic/game/wheel_hotspot.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/titanic/game/wheel_hotspot.cpp b/engines/titanic/game/wheel_hotspot.cpp index aeca7130b5..aec1c8b96d 100644 --- a/engines/titanic/game/wheel_hotspot.cpp +++ b/engines/titanic/game/wheel_hotspot.cpp @@ -31,36 +31,36 @@ END_MESSAGE_MAP() void CWheelHotSpot::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); - file->writeNumberLine(_fieldE0, indent); - file->writeNumberLine(_fieldE4, indent); + file->writeNumberLine(_active, indent); + file->writeNumberLine(_action, indent); CBackground::save(file, indent); } void CWheelHotSpot::load(SimpleFile *file) { file->readNumber(); - _fieldE0 = file->readNumber(); - _fieldE4 = file->readNumber(); + _active = file->readNumber(); + _action = (WheelHotspotAction)file->readNumber(); CBackground::load(file); } bool CWheelHotSpot::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { - if (_fieldE0) { + if (_active) { CActMsg actMsg; - switch (_fieldE4) { - case 1: + switch (_action) { + case WH_STOP: actMsg._action = "Stop"; actMsg.execute("CaptainsWheel"); break; - case 2: + case WH_CRUISE: actMsg._action = "Cruise"; actMsg.execute("CaptainsWheel"); break; - case 3: + case WH_GO: actMsg._action = "Go"; actMsg.execute("CaptainsWheel"); break; @@ -68,7 +68,7 @@ bool CWheelHotSpot::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { default: break; } - } else if (_fieldE4 == 3) { + } else if (_action == WH_GO) { petDisplayMessage(GO_WHERE); } @@ -76,7 +76,7 @@ bool CWheelHotSpot::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { } bool CWheelHotSpot::SignalObject(CSignalObject *msg) { - _fieldE0 = msg->_numValue != 0; + _active = msg->_numValue != 0; return true; } |