projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a2b8d8
)
- removed auto-repeat of jump events, now one has to press again to jump and can...
author
Ingo Ruhnke
<grumbel@gmx.de>
Thu, 29 Apr 2004 00:43:17 +0000
(
00:43
+0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Thu, 29 Apr 2004 00:43:17 +0000
(
00:43
+0000)
SVN-Revision: 828
src/player.cpp
patch
|
blob
|
history
src/player.h
patch
|
blob
|
history
diff --git
a/src/player.cpp
b/src/player.cpp
index
fe5604f
..
afc0c65
100644
(file)
--- a/
src/player.cpp
+++ b/
src/player.cpp
@@
-371,7
+371,7
@@
Player::handle_horizontal_input()
void
Player::handle_vertical_input()
{
- if(input.up == DOWN)
+ if(input.up == DOWN
&& input.old_up == UP
)
{
if (on_ground())
{
@@
-410,6
+410,7
@@
Player::handle_input()
{
handle_vertical_input();
}
+ input.old_up = input.up;
/* Shoot! */
diff --git
a/src/player.h
b/src/player.h
index
2199f23
..
ef3df44
100644
(file)
--- a/
src/player.h
+++ b/
src/player.h
@@
-65,6
+65,7
@@
struct player_input_type
int right;
int left;
int up;
+ int old_up;
int down;
int fire;
int old_fire;