Bidmaron
January 14th, 2017, 15:55
As I'm working my extension, I ran across the following code in the manager_table.lua file in the function prepareTableDice:
local nRandom = math.random(3);
if nRandom == 1 then
nResult = -1;
elseif nRandom == 3 then
nResult = 1;
end
shouldn't that be:
local nRandom = math.random(3);
if nRandom == 1 then
nResult = -1;
elseif nRandom == 3 then
nResult = 1;
else
nResult=0;
end
local nRandom = math.random(3);
if nRandom == 1 then
nResult = -1;
elseif nRandom == 3 then
nResult = 1;
end
shouldn't that be:
local nRandom = math.random(3);
if nRandom == 1 then
nResult = -1;
elseif nRandom == 3 then
nResult = 1;
else
nResult=0;
end