Make sure fish is facing down when killed
authorRyan Flegel <rflegel@gmail.com>
Thu, 12 Jun 2008 04:43:06 +0000 (04:43 +0000)
committerRyan Flegel <rflegel@gmail.com>
Thu, 12 Jun 2008 04:43:06 +0000 (04:43 +0000)
SVN-Revision: 5562

src/badguy/fish.cpp

index 93898d4..e34c4b6 100644 (file)
@@ -68,7 +68,13 @@ Fish::draw(DrawingContext& context)
   if(waiting.started())
     return;
 
-  BadGuy::draw(context);
+  if (get_state() == STATE_FALLING) {
+    sprite->set_action("down");
+    sprite->draw(context, get_pos(), layer);
+  }
+  else if (get_state() == STATE_ACTIVE) {
+    sprite->draw(context, get_pos(), layer);
+  }
 }
 
 HitResponse