summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 12:29:04 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:58 +0000
commit3c731fb78a0499827a3352640b8e3ca4de0bcbf8 (patch)
tree4b26c195f0b6fe90e27d3b3c54d84d1e4b331075
parent6f9665527e807ce12070f4a763844918b5654801 (diff)
* fix infinite loop in new regen code when aliens admitdefeat
-rw-r--r--src/game/g_active.c5
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 ) &&