[MIRROR] Fixes decals not layering as expected in world [MDB IGNORE] (#20078)

* Fixes decals not layering as expected in world (#74232)

## About The Pull Request

They just... were not passing their layer into the element. Stupeeed
Rearranges some layers to ensure things work as they do now

## Why It's Good For The Game

Closes #74165
Should fix weird decal layering. If it doesn't yell at me.

## Changelog
🆑
fix: Fixes decals layering weird in some cases
/🆑

* Fixes decals not layering as expected in world

---------

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-03-25 23:26:26 -07:00
committed by GitHub
co-authored by LemonInTheDark
parent 8a49595c9f
commit 1dfa169dda
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -57,7 +57,7 @@
var/turf/T = loc
if(!istype(T)) //you know this will happen somehow
CRASH("Turf decal initialized in an object/nullspace")
T.AddElement(/datum/element/decal, icon, icon_state, dir, null, null, alpha, color, null, FALSE, null)
T.AddElement(/datum/element/decal, icon, icon_state, dir, null, layer, alpha, color, null, FALSE, null)
return INITIALIZE_HINT_QDEL
/obj/effect/turf_decal/Destroy(force)
@@ -67,7 +67,7 @@
// I hate it too bestie
if(GLOB.running_create_and_destroy)
var/turf/T = loc
T.RemoveElement(/datum/element/decal, icon, icon_state, dir, null, null, alpha, color, null, FALSE, null)
T.RemoveElement(/datum/element/decal, icon, icon_state, dir, null, layer, alpha, color, null, FALSE, null)
#endif
// Intentionally used over moveToNullspace(), which calls doMove(), which fires
// off an enormous amount of procs, signals, etc, that this temporary effect object