From ae7bd4f460fdd93934fc0abc9589758a49309bda Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Mon, 16 Jun 2008 23:46:24 +0000 Subject: [PATCH] Fix issue with action not being updated when typing grow()/fire()/etc in console. Caused by r 5577. SVN-Revision: 5578 --- src/object/player.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/object/player.cpp b/src/object/player.cpp index 6e9245fe7..951fb718a 100644 --- a/src/object/player.cpp +++ b/src/object/player.cpp @@ -1010,6 +1010,9 @@ Player::draw(DrawingContext& context) else sprite->set_action(sa_prefix+((dir == LEFT)?"-" + IDLE_STAGES[idle_stage] + "-left":"-" + IDLE_STAGES[idle_stage] + "-right")); } + else { + sprite->set_action_continued(sa_prefix+((dir == LEFT)?"-" + IDLE_STAGES[idle_stage] + "-left":"-" + IDLE_STAGES[idle_stage] + "-right")); + } } else { sprite->set_action(sa_prefix+((dir == LEFT)?"-walk-left":"-walk-right")); -- 2.11.0