From 1c63cbf204b1d2c667ce9f821ccb197d0ffb0ac3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 11 May 2011 14:48:17 +0000 Subject: Review of the main loop timer, converted timers from float to unsigned long, corrected a number of timing bugs, improved client framerate stability. --- src/game/base/ship.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/base/ship.cc') diff --git a/src/game/base/ship.cc b/src/game/base/ship.cc index 0fa44fb..7a499c3 100644 --- a/src/game/base/ship.cc +++ b/src/game/base/ship.cc @@ -365,7 +365,7 @@ void Ship::action (btScalar seconds) } } -void Ship::frame(float seconds) +void Ship::frame(const unsigned long elapsed) { //const float direction_reaction = 2.0f; // directional control reaction time //const float thrust_reaction = 0.5f; // thrust control reaction time @@ -646,7 +646,7 @@ void Ship::frame(float seconds) } */ - EntityControlable::frame(seconds); + EntityControlable::frame(elapsed); } -- cgit v1.2.3