Merge pull request #2614 from CHOMPStationBot/upstream-merge-11182

[MIRROR] Add code to trace recursive buckle issue
This commit is contained in:
Nadyr
2021-07-20 20:40:42 -04:00
committed by GitHub

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)