Tweaked the reduction method of damageDelay.

This commit is contained in:
Julie Marchant 2019-05-11 02:26:37 -04:00
parent 3b7bb45e28
commit 5cc48d3f9f
1 changed files with 9 additions and 6 deletions

View File

@ -2452,14 +2452,17 @@ int game_mainLoop()
game_doHud();
// Start delaying damage again gradually
if (player_damageDelay > 0)
{
if (player_resetDamageDelay)
{
LIMIT_ADD(player_damageDelay, -1, 0, 100);
player_damageDelay--;
}
else
{
player_resetDamageDelay = 1;
}
}
WRAP_ADD(engine.eventTimer, -1, 0, 60);