From a1a6c422151fef6b1d069d9bbb9d0afc048231df Mon Sep 17 00:00:00 2001 From: Roy Falk Date: Thu, 5 Dec 2024 11:02:10 +0200 Subject: [PATCH] Fix bug 924 --- engine/src/components/drive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/components/drive.cpp b/engine/src/components/drive.cpp index 36a9eba92..91dbb3c0d 100644 --- a/engine/src/components/drive.cpp +++ b/engine/src/components/drive.cpp @@ -111,8 +111,8 @@ void Drive::Load(std::string upgrade_key, void Drive::SaveToCSV(std::map& unit) const { static const double game_speed = configuration()->physics_config.game_speed; static const double game_accel = configuration()->physics_config.game_accel; - static const double game_accel_speed = game_speed * game_accel; - const double to_degrees = 180 / M_PI; + static const double game_accel_speed = 1/ (game_speed * game_accel); + const double to_degrees = M_PI / 180; unit["Maneuver_Yaw"] = yaw.Serialize(to_degrees); unit["Maneuver_Pitch"] = pitch.Serialize(to_degrees); unit["Maneuver_Roll"] = roll.Serialize(to_degrees);