Fix issue with action not being updated when typing grow()/fire()/etc in console...
authorRyan Flegel <rflegel@gmail.com>
Mon, 16 Jun 2008 23:46:24 +0000 (23:46 +0000)
committerRyan Flegel <rflegel@gmail.com>
Mon, 16 Jun 2008 23:46:24 +0000 (23:46 +0000)
SVN-Revision: 5578

src/object/player.cpp

index 6e9245f..951fb71 100644 (file)
@@ -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"));