Fixes simplemob icons when dying while resting.

-Makes the death proc stop simplemobs resting before the icon update so the dying mobs will no longer end up stuck with resting icon instead of the dead one.
This commit is contained in:
Verkister
2018-04-15 13:52:58 +03:00
committed by GitHub
parent fd29a3b841
commit 3d8c916585
@@ -729,6 +729,7 @@
/mob/living/simple_animal/death(gibbed, deathmessage = "dies!")
density = 0 //We don't block even if we did before
walk(src, 0) //We stop any background-processing walks
resting = 0 //We can rest in peace later.
if(faction_friends.len)
faction_friends -= src