diff options
Diffstat (limited to 'scumm/script_v80he.cpp')
-rw-r--r-- | scumm/script_v80he.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp index 52021deffd..938a6867bf 100644 --- a/scumm/script_v80he.cpp +++ b/scumm/script_v80he.cpp @@ -185,7 +185,7 @@ void ScummEngine_v80he::setupOpcodes() { OPCODE(o6_setClass), OPCODE(o6_getState), /* 70 */ - OPCODE(o6_setState), + OPCODE(o80_setState), OPCODE(o6_setOwner), OPCODE(o6_getOwner), OPCODE(o6_jump), @@ -378,4 +378,13 @@ const char *ScummEngine_v80he::getOpcodeDesc(byte i) { return _opcodesV80he[i].desc; } +void ScummEngine_v80he::o80_setState() { + int state = pop(); + int obj = pop(); + + state = state & 0x7F00; + putState(obj, state); + removeObjectFromDrawQue(obj); +} + } // End of namespace Scumm |