projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4852f3c
)
Tux can now flap after bouncing off an enemy
author
Marek Moeckel
<wansti@gmx.de>
Sat, 18 Sep 2004 16:58:16 +0000
(16:58 +0000)
committer
Marek Moeckel
<wansti@gmx.de>
Sat, 18 Sep 2004 16:58:16 +0000
(16:58 +0000)
SVN-Revision: 1948
src/player.cpp
patch
|
blob
|
history
diff --git
a/src/player.cpp
b/src/player.cpp
index
a5ff92a
..
533e761
100644
(file)
--- a/
src/player.cpp
+++ b/
src/player.cpp
@@
-1153,6
+1153,10
@@
Player::check_bounds(Camera* camera)
void
Player::bounce(BadGuy* badguy)
{
+ //Make sure we stopped flapping
+ flapping = false;
+ falling_from_flap = false;
+
if (input.up)
physic.set_velocity_y(5.2);
else