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_button.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_button.cpp')
-rw-r--r-- | engines/titanic/game/wheel_button.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/titanic/game/wheel_button.cpp b/engines/titanic/game/wheel_button.cpp index 730a5d9005..71532e52af 100644 --- a/engines/titanic/game/wheel_button.cpp +++ b/engines/titanic/game/wheel_button.cpp @@ -31,33 +31,33 @@ BEGIN_MESSAGE_MAP(CWheelButton, CBackground) END_MESSAGE_MAP() CWheelButton::CWheelButton() : CBackground(), - _fieldE0(false), _timerId(0), _fieldE8(0) { + _blinking(false), _timerId(0), _unused5(0) { } void CWheelButton::save(SimpleFile *file, int indent) { file->writeNumberLine(1, indent); - file->writeNumberLine(_fieldE0, indent); + file->writeNumberLine(_blinking, indent); file->writeNumberLine(_timerId, indent); - file->writeNumberLine(_fieldE8, indent); + file->writeNumberLine(_unused5, indent); CBackground::save(file, indent); } void CWheelButton::load(SimpleFile *file) { file->readNumber(); - _fieldE0 = file->readNumber(); + _blinking = file->readNumber(); _timerId = file->readNumber(); - _fieldE8 = file->readNumber(); + _unused5 = file->readNumber(); CBackground::load(file); } bool CWheelButton::SignalObject(CSignalObject *msg) { - bool oldFlag = _fieldE0; - _fieldE0 = msg->_numValue != 0; + bool oldBlinking = _blinking; + _blinking = msg->_numValue != 0; - if (oldFlag != _fieldE0) { - if (_fieldE0) { + if (oldBlinking != _blinking) { + if (_blinking) { _timerId = addTimer(500, 500); } else { stopAnimTimer(_timerId); |