From c70b5a2f05703eb715277f0b5b539040dacf5c2c Mon Sep 17 00:00:00 2001 From: joep van der velden Date: Mon, 15 Jun 2020 09:14:56 +0200 Subject: [PATCH] sure travis --- code/game/objects/items/shooting_range.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/shooting_range.dm b/code/game/objects/items/shooting_range.dm index 41b546a0b52..9b24b1efce6 100644 --- a/code/game/objects/items/shooting_range.dm +++ b/code/game/objects/items/shooting_range.dm @@ -85,7 +85,9 @@ var/decaltype = DECALTYPE_SCORCH if(istype(P, /obj/item/projectile/bullet)) decaltype = DECALTYPE_BULLET - if(LAZYLEN(overlays) <= 35 && icon(icon, icon_state).GetPixel(p_x, p_y)) // if the located pixel isn't blank (null) + + var/icon/C = icon(icon, icon_state) + if(LAZYLEN(overlays) <= 35 && C.GetPixel(p_x, p_y)) // if the located pixel isn't blank (null) hp -= P.damage if(hp <= 0) visible_message("[src] breaks into tiny pieces and collapses!")