Merge pull request #11182 from VOREStation/Arokha/bucklefind

Add code to trace recursive buckle issue
This commit is contained in:
Aronai Sieyes
2021-07-20 21:29:56 +00:00
committed by Chompstation Bot
parent 4a6c523aa6
commit 369afc6018
+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)