From: Ryan Flegel Date: Thu, 12 Jun 2008 04:43:06 +0000 (+0000) Subject: Make sure fish is facing down when killed X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=7ffae068ecdecf51aa3ad6942151e2a2c3cf8fa1;p=supertux.git Make sure fish is facing down when killed SVN-Revision: 5562 --- diff --git a/src/badguy/fish.cpp b/src/badguy/fish.cpp index 93898d476..e34c4b69d 100644 --- a/src/badguy/fish.cpp +++ b/src/badguy/fish.cpp @@ -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