Tweaked the reduction method of damageDelay.
This commit is contained in:
parent
3b7bb45e28
commit
5cc48d3f9f
15
src/game.cpp
15
src/game.cpp
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue