summaryrefslogtreecommitdiff
path: root/durt/nodes/(376,-3,-2018).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:54:29 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:54:29 +0200
commita938d2557ef4c948c53bf9a8dd59233ab662db41 (patch)
tree75d6417efe2d07ea586931fd45bd653a652df809 /durt/nodes/(376,-3,-2018).lua
parente58879eef914266a2486d3e5ed154251f6a7ec88 (diff)
State at 2021-09-25
Diffstat (limited to 'durt/nodes/(376,-3,-2018).lua')
0 files changed, 0 insertions, 0 deletions
n class="hl num">1 if ringbufcnt[tid] > 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 atdebug(ringbufs[tid][ringbufcnt[tid]]) 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 privs = {train_operator=true}, -- Require the "privs" privilege to run func = function(name, param) advtrains.drb_dump(param) end, -- Called when command is run. -- Returns boolean success and text output. })