Merge pull request #5522 from Crazylemon64/airlock_wire_runtime_fix

Fixes a runtime when an airlock set to `autoclose` is deleted
This commit is contained in:
Fox McCloud
2016-08-25 22:55:59 -04:00
committed by GitHub
4 changed files with 28 additions and 13 deletions
@@ -412,8 +412,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)