Fix some 'undeclared assignment' warnings
parent
0f14562112
commit
9132c5d996
|
@ -43,6 +43,7 @@ advtrains.modpath = minetest.get_modpath("advtrains")
|
||||||
function advtrains.print_concat_table(a)
|
function advtrains.print_concat_table(a)
|
||||||
local str=""
|
local str=""
|
||||||
local stra=""
|
local stra=""
|
||||||
|
local t
|
||||||
for i=1,20 do
|
for i=1,20 do
|
||||||
t=a[i]
|
t=a[i]
|
||||||
if t==nil then
|
if t==nil then
|
||||||
|
|
|
@ -27,7 +27,6 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
|
||||||
inventory_image="advtrains_retrosignal_inv.png",
|
inventory_image="advtrains_retrosignal_inv.png",
|
||||||
drop="advtrains:retrosignal_off",
|
drop="advtrains:retrosignal_off",
|
||||||
description=attrans("Lampless Signal (@1)", attrans(r..rotation)),
|
description=attrans("Lampless Signal (@1)", attrans(r..rotation)),
|
||||||
on_rightclick=switchfunc,
|
|
||||||
sunlight_propagates=true,
|
sunlight_propagates=true,
|
||||||
groups = {
|
groups = {
|
||||||
cracky=3,
|
cracky=3,
|
||||||
|
@ -62,7 +61,6 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
|
||||||
inventory_image="advtrains_signal_inv.png",
|
inventory_image="advtrains_signal_inv.png",
|
||||||
drop="advtrains:signal_off",
|
drop="advtrains:signal_off",
|
||||||
description=attrans("Signal (@1)", attrans(r..rotation)),
|
description=attrans("Signal (@1)", attrans(r..rotation)),
|
||||||
on_rightclick=switchfunc,
|
|
||||||
groups = {
|
groups = {
|
||||||
cracky=3,
|
cracky=3,
|
||||||
not_blocking_trains=1,
|
not_blocking_trains=1,
|
||||||
|
|
|
@ -154,7 +154,7 @@ ap.t_30deg_straightonly={
|
||||||
},
|
},
|
||||||
slopenodes={},
|
slopenodes={},
|
||||||
rotation={"", "_30", "_45", "_60"},
|
rotation={"", "_30", "_45", "_60"},
|
||||||
increativeinv={st},
|
increativeinv={"st"},
|
||||||
}
|
}
|
||||||
ap.t_30deg_straightonly_noplacer={
|
ap.t_30deg_straightonly_noplacer={
|
||||||
regstep=1,
|
regstep=1,
|
||||||
|
@ -179,7 +179,7 @@ ap.t_30deg_straightonly_noplacer={
|
||||||
},
|
},
|
||||||
slopenodes={},
|
slopenodes={},
|
||||||
rotation={"", "_30", "_45", "_60"},
|
rotation={"", "_30", "_45", "_60"},
|
||||||
increativeinv={st},
|
increativeinv={"st"},
|
||||||
}
|
}
|
||||||
ap.t_45deg={
|
ap.t_45deg={
|
||||||
regstep=2,
|
regstep=2,
|
||||||
|
@ -310,7 +310,7 @@ function advtrains.register_tracks(tracktype, def, preset)
|
||||||
},
|
},
|
||||||
mesecons=mesecontbl,
|
mesecons=mesecontbl,
|
||||||
luaautomation=luaautomation,
|
luaautomation=luaautomation,
|
||||||
drop = increativeinv and def.nodename_prefix.."_"..suffix..rotation or (drop_slope and def.nodename_prefix.."_slopeplacer" or def.nodename_prefix.."_placer"),
|
drop = (drop_slope and def.nodename_prefix.."_slopeplacer" or def.nodename_prefix.."_placer"),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
local function cycle_conns(conns, rotid)
|
local function cycle_conns(conns, rotid)
|
||||||
|
|
Loading…
Reference in New Issue