Fix update_icons() on human update_transform() and effects.dmi unnamed state

This commit is contained in:
Arokha Sieyes
2018-01-17 17:58:11 -05:00
committed by Leshana
parent 2e420cdaca
commit 6b2f4c6146
2 changed files with 10 additions and 1 deletions
@@ -175,7 +175,13 @@ Please contact me on #coderbus IRC. ~Carn x
//5: Set appearance once
appearance = ma_compiled
/mob/living/carbon/human/update_transform(var/mutable_appearance/ma)
/mob/living/carbon/human/update_transform(var/mutable_appearance/passed_ma)
var/mutable_appearance/ma
if(passed_ma)
ma = passed_ma
else
ma = new(src)
/* VOREStation Edit START - TODO - Consider switching to icon_scale
// First, get the correct size.
var/desired_scale = icon_scale
@@ -204,6 +210,9 @@ Please contact me on #coderbus IRC. ~Carn x
ma.transform = M
ma.layer = MOB_LAYER // Fix for a byond bug where turf entry order no longer matters
if(!passed_ma)
appearance = ma
//Update the layers from the defines above
/mob/living/carbon/human/update_icons_layers(var/update_icons = 1)
list_layers.Cut()