Skip to content

Commit

Permalink
fuel scooping: multiply by timeStep instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Pain committed Sep 17, 2023
1 parent fd4b21d commit 4394d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4394d63

Please sign in to comment.