projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f50304d
)
Make sure fish is facing down when killed
author
Ryan Flegel
<rflegel@gmail.com>
Thu, 12 Jun 2008 04:43:06 +0000
(
04:43
+0000)
committer
Ryan Flegel
<rflegel@gmail.com>
Thu, 12 Jun 2008 04:43:06 +0000
(
04:43
+0000)
SVN-Revision: 5562
src/badguy/fish.cpp
patch
|
blob
|
history
diff --git
a/src/badguy/fish.cpp
b/src/badguy/fish.cpp
index
93898d4
..
e34c4b6
100644
(file)
--- 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