From 57048c69f954308135826426b4090e72b6df0f42 Mon Sep 17 00:00:00 2001 From: Oleg Solovyov Date: Wed, 23 Aug 2023 12:33:04 +0300 Subject: [PATCH] fuel scooping: use division instead of multiplication --- src/Ship.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ship.cpp b/src/Ship.cpp index b221487be08..7d38bc56881 100644 --- a/src/Ship.cpp +++ b/src/Ship.cpp @@ -1259,7 +1259,7 @@ void Ship::StaticUpdate(const float timeStep) const double speed_times_density = speed * density; // reference: speed > 100.0, density > 0.3 if ((m_stats.free_capacity) && (dot > 0.90) && speed_times_density > (100.0 * 0.3)) { - const double rate = speed_times_density * 0.00000333 * double(m_stats.fuel_scoop_cap); + const double rate = speed_times_density * double(m_stats.fuel_scoop_cap) / 300000.0; m_hydrogenScoopedAccumulator += rate * Pi::game->GetTimeAccelRate(); if (m_hydrogenScoopedAccumulator > 1) { const double scoopedTons = floor(m_hydrogenScoopedAccumulator);