Prevent invin time from stacking

This commit is contained in:
NepDisk 2025-03-02 08:04:50 -05:00
parent 8b5b674364
commit 76bffc3d60

View file

@ -5254,7 +5254,7 @@ void K_DoInvincibility(player_t *player, tic_t time)
P_SetScale(overlay, player->mo->scale);
}
player->invincibilitytimer += time;
player->invincibilitytimer = time;
if (P_IsLocalPlayer(player) == true)
{