Fix imprecision in fuel regen stops.

This commit is contained in:
Mari the Deer 2022-06-15 16:39:31 +02:00
commit f4029bc219
2 changed files with 4 additions and 2 deletions

View file

@ -1280,11 +1280,13 @@ Class Demolitionist : PlayerPawn
// stops
if ( (oldfuel < (default.dashfuel/24)) && (dashfuel >= default.dashfuel/24) )
{
dashfuel = default.dashfuel/24;
fuelcooldown = 20;
A_StartSound("demolitionist/fuelrgstp",CHAN_BODY,CHANF_OVERLAP,.6,4.,.6);
}
else if ( (oldfuel < (default.dashfuel/12)) && (dashfuel >= default.dashfuel/12) )
{
dashfuel = default.dashfuel/12;
fuelcooldown = 10;
A_StartSound("demolitionist/fuelrgstp",CHAN_BODY,CHANF_OVERLAP,.6,4.,.7);
}