diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 12:29:04 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:58 +0000 |
commit | 3c731fb78a0499827a3352640b8e3ca4de0bcbf8 (patch) | |
tree | 4b26c195f0b6fe90e27d3b3c54d84d1e4b331075 | |
parent | 6f9665527e807ce12070f4a763844918b5654801 (diff) |
* fix infinite loop in new regen code when aliens admitdefeat
-rw-r--r-- | src/game/g_active.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index 1668058a..2def0e5d 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1471,6 +1471,11 @@ void ClientThink_real( gentity_t *ent ) } ent->nextRegenTime += 1000 / ( regenRate * modifier ); } + else + { + ent->health -= 1; + ent->nextRegenTime += 1000 / regenRate; + } } if( BG_InventoryContainsUpgrade( UP_GRENADE, client->ps.stats ) && |