Fix imprecision in fuel regen stops (noticeable in alt hud).

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 B

After

Width:  |  Height:  |  Size: 111 B

Before After
Before After

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r123 \cu(Wed 15 Jun 10:58:47 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r123 \cu(2022-06-15 10:58:47)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r124 \cu(Wed 15 Jun 16:39:31 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r124 \cu(2022-06-15 16:39:31)\c-";

View file

@ -1218,11 +1218,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);
}