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-08-06 16:43:32 +0000
committerStijn Buys <ingar@osirion.org>2008-08-06 16:43:32 +0000
commit6979c74625d51897d99797b309974c2ee82a024b (patch)
tree812f652254672ef016deb96239d6a5c5b98a8801 /src/game
parent668026125ae19b9bd800004ae9ec0510f20753ad (diff)
every player within 1024 game units is drawn as target
Diffstat (limited to 'src/game')
-rw-r--r--src/game/ship.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/ship.cc b/src/game/ship.cc
index 89ff343..8492b68 100644
--- a/src/game/ship.cc
+++ b/src/game/ship.cc
@@ -132,6 +132,10 @@ void Ship::frame(float seconds)
float actual_turnspeed = ship_shipmodel->turnspeed();
float actual_acceleration = ship_shipmodel->acceleration();
+ // speed might get set to 0 on this update
+ if (entity_speed != 0.0f)
+ entity_dirty = true;
+
// jumpdrive
// target axis
math::Axis target_axis(entity_axis);