diff options
author | Ľubomír Remák | 2019-01-12 05:33:49 +0100 |
---|---|---|
committer | Ľubomír Remák | 2019-01-12 05:33:49 +0100 |
commit | b4fed90145e7aa22601de9f32b5a4b0501266d1a (patch) | |
tree | 608e339329980a6227772bd0e91cd3311dd1aa24 /engines/mutationofjb/commands/setobjectframecommand.cpp | |
parent | a97a14cc8918c7b60d94ec07ca4b214f3a7a2c93 (diff) | |
download | scummvm-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/setobjectframecommand.cpp')
-rw-r--r-- | engines/mutationofjb/commands/setobjectframecommand.cpp | 5 |
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; } |