From e7cdf3afcdde301b4c9a26145217064f5133420b Mon Sep 17 00:00:00 2001 From: Oleg Solovyov Date: Wed, 27 Sep 2023 10:20:37 +0300 Subject: [PATCH] fuel scooping: multiply by timeStep instead multiply density by 60 to keep the rate unchanged --- src/Ship.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ship.cpp b/src/Ship.cpp index e1314331cb2..c2ec5ffb5d3 100644 --- a/src/Ship.cpp +++ b/src/Ship.cpp @@ -1265,10 +1265,10 @@ void Ship::StaticUpdate(const float timeStep) * * fuel_scoop_cap = area, m^2. rate = kg^2/(m*s^3) = (Pa*kg)/s^2 */ - const double hydrogen_density = 0.00000333; + const double hydrogen_density = 0.0002; 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);