Merge pull request #1639 from Citadel-Station-13/upstream-merge-28503

[MIRROR] Fixes #28500 : Cryo cells properly compare to a mob's max health
This commit is contained in:
LetterJay
2017-06-17 10:06:14 -05:00
committed by GitHub
@@ -156,7 +156,7 @@
var/turf/T = get_turf(src)
if(occupant)
var/mob/living/mob_occupant = occupant
if(mob_occupant.health >= 100) // Don't bother with fully healed people.
if(mob_occupant.health >= mob_occupant.getMaxHealth()) // Don't bother with fully healed people.
on = FALSE
update_icon()
playsound(T, 'sound/machines/cryo_warning.ogg', volume) // Bug the doctors.