aboutsummaryrefslogtreecommitdiff
path: root/src/lua/COPYRIGHT
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-04-05 11:13:30 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2015-04-05 11:13:30 +0200
commit4235f671c1db54972d288d5be952a748a7563080 (patch)
tree0 files changed, 0 insertions, 0 deletions
pan class="hl opt">] > ringbuflen then ringbufcnt[tid]=0 end end function advtrains.drb_dump(tid) atdebug("Debug ring buffer output for '"..tid.."':") local stopcnt=ringbufcnt[tid] if not stopcnt then atdebug("ID unknown!") return end repeat local t = ringbufs[tid][ringbufcnt[tid]] if t then atdebug(t) end ringbufcnt[tid]=ringbufcnt[tid]+1 if ringbufcnt[tid] > ringbuflen then ringbufcnt[tid]=0 end until ringbufcnt[tid]==stopcnt end minetest.register_chatcommand("atdebug_show", { params = "train sid", -- Short parameter description description = "Dump debug log", -- Full description