projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fce9cf
)
Out the window, Sam. There's nothing but strangers out there.
author
Christoph Sommer
<mail@christoph-sommer.de>
Wed, 9 Aug 2006 21:58:27 +0000
(21:58 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Wed, 9 Aug 2006 21:58:27 +0000
(21:58 +0000)
SVN-Revision: 4143
src/object/bullet.cpp
patch
|
blob
|
history
diff --git
a/src/object/bullet.cpp
b/src/object/bullet.cpp
index
7f0e491
..
b6145e6
100644
(file)
--- a/
src/object/bullet.cpp
+++ b/
src/object/bullet.cpp
@@
-53,14
+53,7
@@
Bullet::~Bullet()
void
Bullet::update(float elapsed_time)
{
- // @not completely framerate independant :-/
- physic.set_velocity_y(physic.get_velocity_y() + 50 * elapsed_time);
-
- if(physic.get_velocity_y() > 900)
- physic.set_velocity_y(900);
- else if(physic.get_velocity_y() < -900)
- physic.set_velocity_y(-900);
-
+ // remove bullet when it's offscreen
float scroll_x =
Sector::current()->camera->get_translation().x;
float scroll_y =