projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc607f0
)
fixed "flapping key not responding"-problem
author
Marek Moeckel
<wansti@gmx.de>
Sat, 18 Sep 2004 16:39:41 +0000
(16:39 +0000)
committer
Marek Moeckel
<wansti@gmx.de>
Sat, 18 Sep 2004 16:39:41 +0000
(16:39 +0000)
SVN-Revision: 1947
src/player.cpp
patch
|
blob
|
history
diff --git
a/src/player.cpp
b/src/player.cpp
index
8e42906
..
a5ff92a
100644
(file)
--- a/
src/player.cpp
+++ b/
src/player.cpp
@@
-563,7
+563,10
@@
Player::handle_vertical_input()
// Flapping
if (input.up == DOWN && can_flap)
{
- if (!flapping_timer.started()) {flapping_timer.start(TUX_FLAPPING_TIME);}
+ if (!flapping_timer.started())
+ {
+ flapping_timer.start(TUX_FLAPPING_TIME);
+ }
if (!flapping_timer.check())
{
can_flap = false;
@@
-651,6
+654,7
@@
Player::handle_vertical_input()
jumping = false;
flapping = false;
falling_from_flap = false;
+ if (flapping_timer.started()) {flapping_timer.stop();}
}
input.old_up = input.up;