aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/commands
diff options
context:
space:
mode:
authorĽubomír Remák2019-01-12 05:33:49 +0100
committerĽubomír Remák2019-01-12 05:33:49 +0100
commitb4fed90145e7aa22601de9f32b5a4b0501266d1a (patch)
tree608e339329980a6227772bd0e91cd3311dd1aa24 /engines/mutationofjb/commands
parenta97a14cc8918c7b60d94ec07ca4b214f3a7a2c93 (diff)
downloadscummvm-rg350-b4fed90145e7aa22601de9f32b5a4b0501266d1a.tar.gz
scummvm-rg350-b4fed90145e7aa22601de9f32b5a4b0501266d1a.tar.bz2
scummvm-rg350-b4fed90145e7aa22601de9f32b5a4b0501266d1a.zip
MUTATIONOFJB: Fix SETANIM and add support for pickupable statics.
Diffstat (limited to 'engines/mutationofjb/commands')
-rw-r--r--engines/mutationofjb/commands/setobjectframecommand.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/setobjectframecommand.cpp b/engines/mutationofjb/commands/setobjectframecommand.cpp
index 54d9059af7..8fcff2be26 100644
--- a/engines/mutationofjb/commands/setobjectframecommand.cpp
+++ b/engines/mutationofjb/commands/setobjectframecommand.cpp
@@ -29,7 +29,7 @@
/** @file
* "SETANIM " <objectId> " " <frame>
*
- * Sets the frame for the specified object and redraws it.
+ * Draws the frame for the specified object without changing the object's current frame.
* If the object is active, it is deactivated.
*/
@@ -51,7 +51,8 @@ Command::ExecuteResult SetObjectFrameCommand::execute(ScriptExecutionContext &sc
Object *const object = scriptExecCtx.getGameData().getCurrentScene()->getObject(_objectId);
object->_active = 0;
- scriptExecCtx.getGame().getRoom().drawObject(_objectId);
+ // The object's current frame is not changed, so use frame override instead.
+ scriptExecCtx.getGame().getRoom().drawObject(_objectId, _frame);
return Finished;
}