aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen/treegen.h
diff options
context:
space:
mode:
authorAllan Nordhøy <epost@anotheragency.no>2019-11-06 08:55:35 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-10 18:57:45 +0000
commit7f2911b7f036fa633fef131058f952f4c38733cb (patch)
tree028d2adff2906131714916e72a5f158518f43464 /src/mapgen/treegen.h
parentd877e9030182cec48747b4c3519ce79d95f1b105 (diff)
Translated using Weblate (Italian)
Currently translated at 96.9% (1234 of 1274 strings)
Diffstat (limited to 'src/mapgen/treegen.h')
0 files changed, 0 insertions, 0 deletions
="hl opt">]=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 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. })