Nullify damaging hitlag for players with hyudorotimer

This commit is contained in:
James R. 2023-09-17 19:21:03 -07:00
parent 39a867b705
commit 784090ec00

View file

@ -2301,7 +2301,7 @@ static void AddNullHitlag(player_t *player, tic_t oldHitlag)
// 1) repeating damage doesn't count // 1) repeating damage doesn't count
// 2) new damage sources still count // 2) new damage sources still count
if (player->timeshit <= player->timeshitprev) if (player->timeshit <= player->timeshitprev || player->hyudorotimer > 0)
{ {
player->nullHitlag += (player->mo->hitlag - oldHitlag); player->nullHitlag += (player->mo->hitlag - oldHitlag);
} }