Add code to trace recursive buckle issue

Also prevents it in the meantime.
This commit is contained in:
Aronai Sieyes
2021-07-20 14:39:44 -04:00
parent bb3b3d6214
commit 49ffaefa14
+4
View File
@@ -54,6 +54,10 @@
if(!can_buckle_check(M, forced))
return FALSE
if(M == src)
stack_trace("Recursive buckle warning: [M] being buckled to self.")
return
M.buckled = src
M.facing_dir = null
M.set_dir(buckle_dir ? buckle_dir : dir)