Fixes runtimes with rigs

Naked and trying to wear a rig, it will attempt to access w_uniform.inv_flags which will be null and runtime.

Moves shoe redrawing to uniform and suit update_inv code in update_icons, rather than in inventory.dm. update_icons already had code for this.
This commit is contained in:
Arokha Sieyes
2016-05-18 20:28:50 -04:00
parent 47176f4912
commit 6960325fbb
2 changed files with 6 additions and 3 deletions
@@ -267,8 +267,6 @@ This saves us from having to call add_fingerprint() any time something is put in
update_inv_shoes(redraw_mob)
if(slot_wear_suit)
src.wear_suit = W
if((wear_suit.flags_inv & HIDESHOES) || (w_uniform.flags_inv & HIDESHOES))
update_inv_shoes(0)
W.equipped(src, slot)
update_inv_wear_suit(redraw_mob)
if(slot_w_uniform)
@@ -499,6 +499,9 @@ var/global/list/damage_icon_parts = list()
else
overlays_standing[UNIFORM_LAYER] = null
//hiding/revealing shoes if necessary
update_inv_shoes(0)
if(update_icons)
update_icons()
@@ -774,10 +777,12 @@ var/global/list/damage_icon_parts = list()
else
overlays_standing[SUIT_LAYER] = null
update_tail_showing(0)
update_inv_shoes(0)
update_collar(0)
//hide/show shoes if necessary
update_inv_shoes(0)
if(update_icons) update_icons()
/mob/living/carbon/human/update_inv_pockets(var/update_icons=1)