decal rotation fix

this fixes a decal issue, where it would show up in map maker normally but randomly rotate in the live server
This commit is contained in:
evilew
2025-03-16 14:57:34 +01:00
parent a18dad9106
commit a8b6735093
2 changed files with 7 additions and 3 deletions
+1 -2
View File
@@ -46,5 +46,4 @@
var/turf/T = loc
if(!istype(T)) //you know this will happen somehow
CRASH("Turf decal initialized in an object/nullspace")
var/turn_dir = 180 - dir2angle(T.dir) //Turning a dir by 0 results in a roulette of random dirs.
T.AddElement(/datum/element/decal, icon, icon_state, turn_dir ? turn(dir, turn_dir) : dir, CLEAN_GOD, color, null, null, alpha, FALSE)
T.AddElement(/datum/element/decal, icon, icon_state, dir, CLEAN_GOD, color, null, null, alpha) //BLUEMOON FIX - ADDED BY GS13