better debugging

master
ademant 2019-01-15 14:33:36 +01:00
parent 4c0778ca35
commit 8506e1a418
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ end
local function get_message(mtype)
if mtype==nil then mtype="default" end
if RANDOM_MESSAGES then
return messages[mtype][LANG][math.random(1, #messages[mtype])]
local lmessages=messages[mtype][LANG]
return lmessages[math.random(1, #lmessages)]
else
return messages[1] -- 1 is the index for the non-random message
end