From: Christoph Sommer Date: Wed, 9 Aug 2006 21:58:27 +0000 (+0000) Subject: Out the window, Sam. There's nothing but strangers out there. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2e8c529df6c1700acec583d852da9375f1c0ccfc;p=supertux.git Out the window, Sam. There's nothing but strangers out there. SVN-Revision: 4143 --- 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 =