From 4394d63d3a3554a0915d1cade9bc4e81a544668f Mon Sep 17 00:00:00 2001 From: Oleg Solovyov Date: Sun, 17 Sep 2023 08:05:34 +0300 Subject: [PATCH] fuel scooping: multiply by timeStep instead --- src/Ship.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ship.cpp b/src/Ship.cpp index e1314331cb2..9bf90a5c5bb 100644 --- a/src/Ship.cpp +++ b/src/Ship.cpp @@ -1268,7 +1268,7 @@ void Ship::StaticUpdate(const float timeStep) const double hydrogen_density = 0.00000333; if ((m_stats.free_capacity) && (dot > 0.90) && speed_times_density > (100.0 * 0.3)) { const double rate = speed_times_density * hydrogen_density * double(m_stats.fuel_scoop_cap); - m_hydrogenScoopedAccumulator += rate * Pi::game->GetTimeAccelRate(); + m_hydrogenScoopedAccumulator += rate * timeStep; if (m_hydrogenScoopedAccumulator > 1) { const double scoopedTons = floor(m_hydrogenScoopedAccumulator); LuaEvent::Queue("onShipScoopFuel", this, p, scoopedTons);