Improves shuttle corner fix to use actual appearance data of the turf, so it takes transform into consideration.

This commit is contained in:
carnie
2015-01-19 18:48:52 +00:00
parent dd438b6437
commit 10906be41a
+5 -4
View File
@@ -546,12 +546,13 @@
/turf/proc/copyTurf(turf/T)
if(T.type != type)
var/image/I
var/obj/O
if(underlays.len) //we have underlays, which implies some sort of transparency, so we want to a snapshot of the previous turf as an underlay
I = image(T.icon, T.icon_state)
O = new()
O.underlays.Add(T)
T = new type(T)
if(I)
T.underlays.Add(I)
if(underlays.len)
T.underlays = O.underlays
if(T.icon_state != icon_state)
T.icon_state = icon_state
if(T.icon != icon)