Peoples' limbs are no longer given a wound cleanup timer if they don't

need it
This commit is contained in:
Crazylemon64
2016-08-23 02:50:51 -07:00
parent ea669191d5
commit 7a75910bb0
@@ -411,8 +411,8 @@ This function completely restores a damaged organ to perfect condition.
last_dam = brute_dam + burn_dam
if(germ_level)
return 1
if(!wound_cleanup_timer)
wound_cleanup_timer = addtimer(src, "cleanup_wounds", SecondsToTicks(600), 1, wounds)
if(!wound_cleanup_timer && wounds.len)
wound_cleanup_timer = addtimer(src, "cleanup_wounds", SecondsToTicks(600), unique = 1, wounds)
if(update_icon())
owner.UpdateDamageIcon(1)