Skip to content

Commit

Permalink
glove fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BeagleGaming1 committed Jul 18, 2023
1 parent 420ee49 commit 270557f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/modules/clothing/gloves/marine_gloves.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@

/obj/item/clothing/gloves/marine/get_mob_overlay(mob/living/carbon/human/current_human, slot)
var/image/ret = ..()
if(!adopts_squad_color)
return
if(!(current_human.assigned_squad && current_human.assigned_squad.equipment_color))
return
if(!adopts_squad_color || !(current_human.assigned_squad && current_human.assigned_squad.equipment_color))
return ret
var/image/glove_overlay = image(squad_overlay_icon, icon_state = "std-gloves")
glove_overlay.alpha = current_human.assigned_squad.armor_alpha
glove_overlay.color = current_human.assigned_squad.equipment_color
Expand Down

0 comments on commit 270557f

Please sign in to comment.