Merge pull request #13359 from Ghommie/Ghommie-cit838

Turf visuals fix plus corrected names of a couple things.
This commit is contained in:
silicons
2020-09-07 13:42:05 -07:00
committed by GitHub
7 changed files with 23 additions and 9 deletions
+2 -1
View File
@@ -46,4 +46,5 @@
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, CLEAN_GOD, color, null, null, alpha)
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)