Skip to content

Commit

Permalink
Merge pull request Baystation12#14532 from Kearel/voxFixOverlays
Browse files Browse the repository at this point in the history
Fixes Vox overlays
  • Loading branch information
PsiOmegaDelta authored Nov 7, 2016
2 parents 3a43dba + d42d7a0 commit 451225d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -695,15 +695,15 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
mob_state = "[mob_state]_l"
if(slot == slot_r_hand_str || slot == slot_r_ear_str)
mob_state = "[mob_state]_r"
else if(sprite_sheets && sprite_sheets[bodytype] && !(slot == slot_r_hand_str || slot == slot_l_hand_str))
else if(sprite_sheets && sprite_sheets[bodytype] && (mob_state in icon_states(sprite_sheets[bodytype])) && !(slot == slot_r_hand_str || slot == slot_l_hand_str))
if(slot == slot_l_ear)
mob_state = "[mob_state]_l"
if(slot == slot_r_ear)
mob_state = "[mob_state]_r"

mob_icon = sprite_sheets[bodytype]
else if(item_icons && item_icons[slot])
mob_icon = item_icons[slot]
else
mob_icon = default_onmob_icons[slot]

return overlay_image(mob_icon,mob_state,color,RESET_COLOR)

0 comments on commit 451225d

Please sign in to comment.