Skip to content

Commit

Permalink
fuel scooping: use division instead of multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Pain committed Aug 23, 2023
1 parent c2fc406 commit c03ee3e
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 @@ -1258,7 +1258,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);
Expand Down

0 comments on commit c03ee3e

Please sign in to comment.