Made the decal component an element. (#12388)

* Made the decal component an element.

* Is this really worth it?

* Oh.
This commit is contained in:
Ghom
2020-05-30 23:06:53 +02:00
committed by GitHub
parent f572fe4607
commit 25dbed5b0b
6 changed files with 78 additions and 93 deletions
+1 -1
View File
@@ -46,4 +46,4 @@
var/turf/T = loc
if(!istype(T)) //you know this will happen somehow
CRASH("Turf decal initialized in an object/nullspace")
T.AddComponent(/datum/component/decal, icon, icon_state, dir, CLEAN_GOD, color, null, null, alpha)
T.AddElement(/datum/element/decal, icon, icon_state, turn(dir, -dir2angle(T.dir)), CLEAN_GOD, color, null, null, alpha)