From b4fed90145e7aa22601de9f32b5a4b0501266d1a Mon Sep 17 00:00:00 2001 From: Ľubomír Remák Date: Sat, 12 Jan 2019 05:33:49 +0100 Subject: MUTATIONOFJB: Fix SETANIM and add support for pickupable statics. --- engines/mutationofjb/commands/setobjectframecommand.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/mutationofjb/commands/setobjectframecommand.cpp') 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 " " " * - * 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; } -- cgit v1.2.3