projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e29d587
)
Added grabbing while ducking.
author
Ricardo Cruz
<rick2@aeiou.pt>
Sat, 4 Sep 2004 21:16:05 +0000
(21:16 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Sat, 4 Sep 2004 21:16:05 +0000
(21:16 +0000)
SVN-Revision: 1865
src/player.cpp
patch
|
blob
|
history
diff --git
a/src/player.cpp
b/src/player.cpp
index
05643ec
..
a2e168e
100644
(file)
--- a/
src/player.cpp
+++ b/
src/player.cpp
@@
-767,9
+767,12
@@
Player::draw(DrawingContext& context)
// Tux is holding something
if ((holding_something && physic.get_velocity_y() == 0) ||
- shooting_timer.check()
&& !duck
)
+ shooting_timer.check())
{
- tux_body->arms->set_action("grab");
+ if (duck)
+ tux_body->arms->set_action("duck+grab");
+ else
+ tux_body->arms->set_action("grab");
}
/* Draw Tux */