mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 02:25:06 +01:00
Adds sanity check to spin()
This commit is contained in:
@@ -296,6 +296,8 @@ note dizziness decrements automatically in the mob's Life() proc.
|
||||
return TRUE //Found an item, doing item attack animation.
|
||||
|
||||
/mob/proc/spin(spintime, speed)
|
||||
if(!speed || speed < 1) // Do NOT spin with infinite speed, it will break the reality
|
||||
return
|
||||
spawn()
|
||||
var/D = dir
|
||||
while(spintime >= speed)
|
||||
|
||||
Reference in New Issue
Block a user