Merge pull request #4433 from Citadel-Station-13/upstream-merge-33614

[MIRROR] Decal rotation fix
This commit is contained in:
deathride58
2017-12-21 20:19:52 +00:00
committed by GitHub
+2 -3
View File
@@ -48,8 +48,7 @@
if(old_dir == new_dir)
return
remove()
var/rotation = SIMPLIFY_DEGREES(dir2angle(new_dir)-dir2angle(old_dir))
pic.dir = turn(pic.dir, rotation)
pic.dir = turn(pic.dir, dir2angle(old_dir) - dir2angle(new_dir))
apply()
/datum/component/decal/proc/clean_react(strength)
@@ -57,4 +56,4 @@
qdel(src)
/datum/component/decal/proc/examine(mob/user)
to_chat(user, description)
to_chat(user, description)