Fixes turf decal overlays layering with holopads

Holopads layer at TURF_LAYER + 0.1 so there is the possibility that turf decals might layer over them. This ensures that decals layer under holopads.
This commit is contained in:
mwerezak
2015-08-16 06:08:22 -07:00
committed by Zuhayr
parent 15599ab6c8
commit ed0a089fb6
+2 -2
View File
@@ -6,7 +6,7 @@ var/list/floor_decals = list()
/obj/effect/floor_decal
name = "floor decal"
icon = 'icons/turf/flooring/decals.dmi'
layer = TURF_LAYER
layer = TURF_LAYER + 0.01
/obj/effect/floor_decal/initialize()
var/turf/simulated/floor/F = get_turf(src)
@@ -14,7 +14,7 @@ var/list/floor_decals = list()
var/cache_key = "[alpha]-[color]-[dir]-[icon_state]-[layer]"
if(!floor_decals[cache_key])
var/image/I = image(icon = src.icon, icon_state = src.icon_state, dir = src.dir)
I.layer = F.layer + 0.1
I.layer = F.layer + 0.01
I.color = src.color
I.alpha = src.alpha
floor_decals[cache_key] = I