diff options
Diffstat (limited to 'Stars45/FlightComp.cpp')
-rw-r--r-- | Stars45/FlightComp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Stars45/FlightComp.cpp b/Stars45/FlightComp.cpp index a5fc818..d2eb45c 100644 --- a/Stars45/FlightComp.cpp +++ b/Stars45/FlightComp.cpp @@ -46,7 +46,7 @@ FlightComp::FlightComp(int comp_type, const char* comp_name) : Computer(comp_type, comp_name), mode(0), vlimit(0.0f), -trans_x_limit(0.0f), trans_y_limit(0.0f), trans_z_limit(0.0f), +trans_x_limit(0.0f), trans_y_limit(0.0f), trans_z_limit(0.0f), throttle(0.0f), halt(0) { } @@ -54,7 +54,7 @@ throttle(0.0f), halt(0) FlightComp::FlightComp(const Computer& c) : Computer(c), mode(0), vlimit(0.0f), -trans_x_limit(0.0f), trans_y_limit(0.0f), trans_z_limit(0.0f), +trans_x_limit(0.0f), trans_y_limit(0.0f), trans_z_limit(0.0f), throttle(0.0f), halt(0) { } @@ -240,8 +240,8 @@ FlightComp::ExecTrans() if (current_bank < 0 && desired_bank < 0 || current_bank > 0 && desired_bank > 0) { - double coord_pitch = compass_pitch - - ship->GetHelmPitch() + double coord_pitch = compass_pitch + - ship->GetHelmPitch() - fabs(helm) * fabs(current_bank); ship->ApplyPitch(coord_pitch); } |