mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
Fix update_icons() on human update_transform() and effects.dmi unnamed state
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user