From 3d8c9165856f048282ec2b7e4f16609f64f680ae Mon Sep 17 00:00:00 2001 From: Verkister Date: Sun, 15 Apr 2018 13:52:58 +0300 Subject: [PATCH] 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. --- code/modules/mob/living/simple_animal/simple_animal.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/mob/living/simple_animal/simple_animal.dm b/code/modules/mob/living/simple_animal/simple_animal.dm index 7cb6dee1e6..fcfc70b026 100644 --- a/code/modules/mob/living/simple_animal/simple_animal.dm +++ b/code/modules/mob/living/simple_animal/simple_animal.dm @@ -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