diff options
| author | Miroslav Remák | 2018-07-19 16:21:39 +0200 |
|---|---|---|
| committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
| commit | 578a6794de9ba7679966fee9aec02c6b2bdbce94 (patch) | |
| tree | 7c074790339a235599311d0cf12bde86678f3a17 /engines/mutationofjb/commands | |
| parent | cda1f0dd3a553dbd4480b87a054d388c98740585 (diff) | |
| download | scummvm-rg350-578a6794de9ba7679966fee9aec02c6b2bdbce94.tar.gz scummvm-rg350-578a6794de9ba7679966fee9aec02c6b2bdbce94.tar.bz2 scummvm-rg350-578a6794de9ba7679966fee9aec02c6b2bdbce94.zip | |
MUTATIONOFJB: Improve documentation, rename cryptic variables.
Diffstat (limited to 'engines/mutationofjb/commands')
| -rw-r--r-- | engines/mutationofjb/commands/changecommand.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/engines/mutationofjb/commands/changecommand.cpp b/engines/mutationofjb/commands/changecommand.cpp index a2d45260f5..d7a8f9ca4b 100644 --- a/engines/mutationofjb/commands/changecommand.cpp +++ b/engines/mutationofjb/commands/changecommand.cpp @@ -381,22 +381,22 @@ Command::ExecuteResult ChangeObjectCommand::execute(ScriptExecutionContext &scri switch (_register) { case AC: - object->_AC = _value._byteVal; + object->_active = _value._byteVal; break; case FA: - object->_FA = _value._byteVal; + object->_firstFrame = _value._byteVal; break; case FR: - object->_FR = _value._byteVal; + object->_randomFrame = _value._byteVal; break; case NA: - object->_NA = _value._byteVal; + object->_numFrames = _value._byteVal; break; case FS: - object->_FS = _value._byteVal; + object->_roomFrameLSB = _value._byteVal; break; case CA: - object->_CA = _value._byteVal; + object->_currentFrame = _value._byteVal; break; case XX: object->_x = _value._wordVal; @@ -405,16 +405,16 @@ Command::ExecuteResult ChangeObjectCommand::execute(ScriptExecutionContext &scri object->_y = _value._byteVal; break; case XL: - object->_XL = _value._wordVal; + object->_width = _value._wordVal; break; case YL: - object->_YL = _value._byteVal; + object->_height = _value._byteVal; break; case WX: object->_WX = _value._wordVal; break; case WY: - object->_WY = _value._byteVal; + object->_roomFrameMSB = _value._byteVal; break; case SP: object->_SP = _value._byteVal; @@ -468,7 +468,7 @@ Command::ExecuteResult ChangeStaticCommand::execute(ScriptExecutionContext &scri stat->_walkToY = _value._byteVal; break; case SP: - stat->_SP = _value._byteVal; + stat->_walkToFrame = _value._byteVal; break; default: warning("Object does not support changing this register."); @@ -493,7 +493,7 @@ Command::ExecuteResult ChangeSceneCommand::execute(ScriptExecutionContext &scrip scene->_startup = _value._byteVal; break; case DL: - scene->_DL = _value._byteVal; + scene->_delay = _value._byteVal; break; case ND: scene->_noDoors = _value._byteVal; @@ -505,13 +505,13 @@ Command::ExecuteResult ChangeSceneCommand::execute(ScriptExecutionContext &scrip scene->_noStatics = _value._byteVal; break; case PF: - scene->_palRotStart = _value._byteVal; + scene->_palRotFirst = _value._byteVal; break; case PL: - scene->_palRotEnd = _value._byteVal; + scene->_palRotLast = _value._byteVal; break; case PD: - scene->_palRotPeriod = _value._byteVal; + scene->_palRotDelay = _value._byteVal; break; default: warning("Scene does not support changing this register."); |
