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,13 +2452,16 @@ int game_mainLoop()
game_doHud(); game_doHud();
// Start delaying damage again gradually // Start delaying damage again gradually
if (player_resetDamageDelay) if (player_damageDelay > 0)
{ {
LIMIT_ADD(player_damageDelay, -1, 0, 100); if (player_resetDamageDelay)
} {
else player_damageDelay--;
{ }
player_resetDamageDelay = 1; else
{
player_resetDamageDelay = 1;
}
} }
WRAP_ADD(engine.eventTimer, -1, 0, 60); WRAP_ADD(engine.eventTimer, -1, 0, 60);