Adds sanity check to spin()

This commit is contained in:
Heroman
2023-08-15 17:40:56 +10:00
parent afc739c27d
commit 312b5e2a28
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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)