Skip to content

Commit

Permalink
fixed fuel display
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Feb 4, 2024
1 parent 706833c commit d12b27a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function ButtonAttackPlanet({
const speedFactor = speed / 100; // Convert percentage to a factor
const fleetSpeed = techs ? getFleetSpeed(fleet, techs) : 0;
setTravelTime(getFlightTime(fleetSpeed, distance, speedFactor));
setFuelConsumption(getFuelConsumption(fleet, distance, speedFactor));
setFuelConsumption(getFuelConsumption(fleet, distance, speed));
}, [distance, fleet, ownPosition, techs, speed]);

const handleSendAttackClick = () => {
Expand Down

0 comments on commit d12b27a

Please sign in to comment.