mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-21 20:27:42 +01:00
Merge pull request #3664 from CHOMPStation2/upstream-merge-12209
[MIRROR] Improves SpinAnimation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user