diff options
author | Eugene Sandulenko | 2016-09-04 23:54:43 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-09-04 23:54:43 +0200 |
commit | 26f55005b3dad33a6ca9ff0b9d0df98bb4478be0 (patch) | |
tree | 2b078a8ad98a5fae0a63f7aaf23bd1f7802ad243 /engines/fullpipe/lift.cpp | |
parent | a3238fdbac5c2b3c0cd5b7e753321c3973fe8a3b (diff) | |
download | scummvm-rg350-26f55005b3dad33a6ca9ff0b9d0df98bb4478be0.tar.gz scummvm-rg350-26f55005b3dad33a6ca9ff0b9d0df98bb4478be0.tar.bz2 scummvm-rg350-26f55005b3dad33a6ca9ff0b9d0df98bb4478be0.zip |
FULLPIPE: Rename in ExCommand structure
Diffstat (limited to 'engines/fullpipe/lift.cpp')
-rw-r--r-- | engines/fullpipe/lift.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/fullpipe/lift.cpp b/engines/fullpipe/lift.cpp index 93bfbaaa24..32a4532e36 100644 --- a/engines/fullpipe/lift.cpp +++ b/engines/fullpipe/lift.cpp @@ -240,23 +240,23 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) { if (!cmd) { ex = new ExCommand(_aniMan->_id, 2, 40, 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = _aniMan->_okeyCode; + ex->_param = _aniMan->_okeyCode; ex->_excFlags |= 2; mq->addExCommandToEnd(ex); } ex = new ExCommand(_lift->_id, 1, MV_LFT_OPEN, 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = _lift->_okeyCode; + ex->_param = _lift->_okeyCode; ex->_excFlags |= 2; mq->addExCommandToEnd(ex); ex = new ExCommand(_aniMan->_id, 1, MV_MAN_STARTD, 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = _aniMan->_okeyCode; + ex->_param = _aniMan->_okeyCode; ex->_excFlags |= 2; mq->addExCommandToEnd(ex); ex = new ExCommand(_aniMan->_id, 5, -1, 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = _aniMan->_okeyCode; + ex->_param = _aniMan->_okeyCode; ex->_field_14 = 10; ex->_x = -1; ex->_y = -1; @@ -274,7 +274,7 @@ void FullpipeEngine::lift_exitSeq(ExCommand *cmd) { mq->addExCommandToEnd(ex); ex = new ExCommand(_lift->_id, 1, MV_LFT_CLOSE, 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = _lift->_okeyCode; + ex->_param = _lift->_okeyCode; ex->_excFlags |= 2; mq->addExCommandToEnd(ex); @@ -340,12 +340,12 @@ void FullpipeEngine::lift_walkAndGo() { mq->setFlags(mq->getFlags() | 1); ex = new ExCommand(_aniMan->_id, 2, 15, 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = _aniMan->_okeyCode; + ex->_param = _aniMan->_okeyCode; ex->_excFlags |= 2; mq->addExCommand(ex); ex = new ExCommand(_aniMan->_id, 5, -1, 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = _aniMan->_okeyCode; + ex->_param = _aniMan->_okeyCode; ex->_field_14 = _lift->_priority + 1; ex->_x = -1; ex->_y = -1; @@ -410,7 +410,7 @@ void FullpipeEngine::lift_goAnimation() { ExCommand *ex = new ExCommand(ANI_MAN, 1, (pre->keyCode != LiftDown ? MV_MAN_LIFTDOWN : MV_MAN_LIFTUP), 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = -1; + ex->_param = -1; ex->_field_24 = 1; ex->_excFlags |= 2; @@ -418,7 +418,7 @@ void FullpipeEngine::lift_goAnimation() { ex = new ExCommand(parentId, 17, 61, 0, 0, 0, 1, 0, 0, 0); - ex->_keyCode = buttonId; + ex->_param = buttonId; ex->_excFlags |= 3; mq->addExCommandToEnd(ex); @@ -488,7 +488,7 @@ void FullpipeEngine::lift_startExitQueue() { void FullpipeEngine::lift_hoverButton(ExCommand *cmd) { if (_lastLiftButton) { - if (!(cmd->_keyCode & 2) || _liftX != cmd->_x || _liftY != cmd->_y) { + if (!(cmd->_param & 2) || _liftX != cmd->_x || _liftY != cmd->_y) { _lastLiftButton->_statics = _lastLiftButton->getStaticsById(lift_getButtonIdN(_lastLiftButton->_statics->_staticsId)); _lastLiftButton = 0; } |