Merge pull request #3664 from CHOMPStation2/upstream-merge-12209

[MIRROR] Improves SpinAnimation
This commit is contained in:
Razgriz
2022-02-13 01:25:25 -07:00
committed by GitHub
+7
View File
@@ -6,6 +6,13 @@
/atom/proc/SpinAnimation(speed = 10, loops = -1, clockwise = 1, segments = 3)
if(!segments)
return
//VOREStation Addition Start
if(speed == 0)
loops = 0
if(speed < 0)
speed = speed * -1
clockwise = 0
//VOREStation Addition End
var/segment = 360/segments
if(!clockwise)
segment = -segment