From: Ryan Flegel Date: Mon, 16 Jun 2008 23:46:24 +0000 (+0000) Subject: Fix issue with action not being updated when typing grow()/fire()/etc in console... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ae7bd4f460fdd93934fc0abc9589758a49309bda;p=supertux.git Fix issue with action not being updated when typing grow()/fire()/etc in console. Caused by r 5577. SVN-Revision: 5578 --- 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"));