diff options
Diffstat (limited to 'Stars45/Thruster.cpp')
-rw-r--r-- | Stars45/Thruster.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Stars45/Thruster.cpp b/Stars45/Thruster.cpp index db0c210..c3fbce6 100644 --- a/Stars45/Thruster.cpp +++ b/Stars45/Thruster.cpp @@ -198,7 +198,7 @@ Thruster::Orient(const Physical* rep) ThrusterPort* p = ports[i]; Point projector = (p->loc * orientation) + ship_loc; - + if (p->flare) p->flare->MoveTo(projector); @@ -324,11 +324,11 @@ Thruster::SetShip(Ship* s) roll_drag = design->roll_drag; pitch_drag = design->pitch_drag; yaw_drag = design->yaw_drag; - + roll_rate = (float) (design->roll_rate * PI / 180); pitch_rate = (float) (design->pitch_rate * PI / 180); yaw_rate = (float) (design->yaw_rate * PI / 180); - + double agility = design->agility; if (roll_rate == 0) roll_rate = (float) (agility * ROLL_SPEED); @@ -381,7 +381,7 @@ Thruster::ExecTrans(double x, double y, double z) if (ship->Rep() && ship->Rep()->Hidden()) show_flare = false; - if (ship->Class() == Ship::LCA && + if (ship->Class() == Ship::LCA && ship->IsAirborne() && ship->Velocity().length() < 250 && ship->AltitudeAGL() > ship->Radius()/2) { |