From f5266b403c50cb2b6d712e6d8f41b62ad2433efb Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 1 May 2008 12:41:31 +0000 Subject: lights --- src/game/ship.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game') diff --git a/src/game/ship.cc b/src/game/ship.cc index c9e2266..538a1e6 100644 --- a/src/game/ship.cc +++ b/src/game/ship.cc @@ -48,9 +48,9 @@ void Ship::frame(float seconds) else if (target_pitch < -1.0f) target_pitch = -1.0f; - float pitch_offset = ship_shipmodel->turnspeed() * seconds * target_pitch; + float pitch_offset = seconds * target_pitch; if (pitch_offset) - entity_axis.change_pitch(360.0f * pitch_offset); + entity_axis.change_pitch(360.0f * ship_shipmodel->turnspeed() * pitch_offset); // update direction if (target_direction > 1.0f) @@ -58,9 +58,9 @@ void Ship::frame(float seconds) else if (target_direction < -1.0f) target_direction = -1.0f; - float direction_offset = ship_shipmodel->turnspeed() * seconds * target_direction; + float direction_offset = seconds * target_direction; if (direction_offset) - entity_axis.change_direction(360.0f * direction_offset); + entity_axis.change_direction(360.0f * ship_shipmodel->turnspeed() * direction_offset); // update speed if (entity_speed < entity_thrust * ship_shipmodel->maxspeed()) { -- cgit v1.2.3