mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge pull request #2614 from CHOMPStationBot/upstream-merge-11182
[MIRROR] Add code to trace recursive buckle issue
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user