Remove damagecount overflow hotfix for old gzdoom versions.

This commit is contained in:
Mari the Deer 2022-09-27 16:45:45 +02:00
commit e7e9407da4
2 changed files with 2 additions and 4 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r515 \cu(Tue 27 Sep 00:44:28 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r515 \cu(2022-09-27 00:44:28)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r516 \cu(Tue 27 Sep 16:45:45 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r516 \cu(2022-09-27 16:45:45)\c-";

View file

@ -1982,8 +1982,6 @@ Class Demolitionist : PlayerPawn
int oldpchance = PainChance;
if ( damage < 5 ) PainChance = 0;
int realdmg = Super.DamageMobj(inflictor,source,damage,mod,flags,angle);
// hotfix damagecount overflow until proper fix is in stable gzdoom
if ( player && (player.damagecount < 0) ) player.damagecount = 100;
if ( lastdamagetic != gametic )
{
lastdamage = 0;