From edc44b2cc5d29a67330dec263a64c1623e93c897 Mon Sep 17 00:00:00 2001 From: Verkister Date: Sat, 18 Mar 2017 11:59:03 +0200 Subject: [PATCH] Overlay fix for the inhand borkage. Whoa this thing actually succeeded on the first time unlike yesterday's shit :v --- code/controllers/subsystem/processing/overlays.dm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/controllers/subsystem/processing/overlays.dm b/code/controllers/subsystem/processing/overlays.dm index 2336b85f37..b41b24e812 100644 --- a/code/controllers/subsystem/processing/overlays.dm +++ b/code/controllers/subsystem/processing/overlays.dm @@ -100,9 +100,11 @@ var/datum/subsystem/processing/overlays/SSoverlays else var/image/I = overlays[i] appearance_bro.appearance = I - if(isturf(src)) + if(ishuman(src) || istype(src,/obj/item)) + overlays[i] = appearance_bro.appearance + else appearance_bro.dir = I.dir - overlays[i] = appearance_bro.appearance + overlays[i] = appearance_bro.appearance var/list/cached_overlays = our_overlays //sanic var/list/cached_priority = priority_overlays @@ -131,9 +133,11 @@ var/datum/subsystem/processing/overlays/SSoverlays else var/image/I = overlays[i] appearance_bro.appearance = I - if(isturf(src)) + if(ishuman(src) || istype(src,/obj/item)) + overlays[i] = appearance_bro.appearance + else appearance_bro.dir = I.dir - overlays[i] = appearance_bro.appearance + overlays[i] = appearance_bro.appearance LAZYINITLIST(our_overlays) //always initialized after this point LAZYINITLIST(priority_overlays)