Merge branch 'fix-time-old-special-softlock' into 'next'

Fix softlock on old special stages when running out of time due to being hit

See merge request STJr/SRB2!2398
This commit is contained in:
sphere 2024-03-21 15:46:26 +00:00
commit 7aa8477443

View file

@ -3640,7 +3640,7 @@ void P_SpecialStageDamage(player_t *player, mobj_t *inflictor, mobj_t *source)
if (player->nightstime > 5*TICRATE)
player->nightstime -= 5*TICRATE;
else
player->nightstime = 0;
player->nightstime = 1;
}
P_DoPlayerPain(player, inflictor, source);