Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-05-01 12:41:31 +0000
committerStijn Buys <ingar@osirion.org>2008-05-01 12:41:31 +0000
commitf5266b403c50cb2b6d712e6d8f41b62ad2433efb (patch)
treefbd1cbafbb6d43b2fd5838cff8ce85df245bac86 /src/game
parente2b18c44a6ae38bb84f717c86988a80da137c3e7 (diff)
lights
Diffstat (limited to 'src/game')
-rw-r--r--src/game/ship.cc8
1 files changed, 4 insertions, 4 deletions
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()) {