Out the window, Sam. There's nothing but strangers out there.
authorChristoph Sommer <mail@christoph-sommer.de>
Wed, 9 Aug 2006 21:58:27 +0000 (21:58 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Wed, 9 Aug 2006 21:58:27 +0000 (21:58 +0000)
SVN-Revision: 4143

src/object/bullet.cpp

index 7f0e491..b6145e6 100644 (file)
@@ -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 =