From 2e8c529df6c1700acec583d852da9375f1c0ccfc Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Wed, 9 Aug 2006 21:58:27 +0000 Subject: [PATCH] Out the window, Sam. There's nothing but strangers out there. SVN-Revision: 4143 --- src/object/bullet.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/object/bullet.cpp b/src/object/bullet.cpp index 7f0e49194..b6145e621 100644 --- 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 = -- 2.11.0