mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-21 12:17:40 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user