projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73d5274
)
Ryan was right, Tux was firing from the head :D
author
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 18 May 2004 23:15:31 +0000
(23:15 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Tue, 18 May 2004 23:15:31 +0000
(23:15 +0000)
SVN-Revision: 1263
src/player.cpp
patch
|
blob
|
history
diff --git
a/src/player.cpp
b/src/player.cpp
index
2b6cfd6
..
a01480e
100644
(file)
--- a/
src/player.cpp
+++ b/
src/player.cpp
@@
-461,7
+461,8
@@
Player::handle_input()
/* Shoot! */
if (input.fire == DOWN && input.old_fire == UP && got_power != NONE_POWER)
{
- World::current()->add_bullet(base.x, base.y, physic.get_velocity_x(), dir);
+ holding_something = true;
+ World::current()->add_bullet(base.x, base.y + (base.height/2), physic.get_velocity_x(), dir);
input.old_fire = DOWN;
}