aboutsummaryrefslogtreecommitdiff
path: root/assets/interlocking.html.LyXconv/interlocking.tex.dep-pdf
diff options
context:
space:
mode:
author1F616EMO <root@1f616emo.xyz>2026-01-23 22:06:39 +0800
committerorwell <orwell@bleipb.de>2026-01-29 21:46:50 +0100
commit862611d89b304c502dd600eed308eb4ad5fbf528 (patch)
tree3f320b385afd3fef49bb3b2f9692129983623d7d /assets/interlocking.html.LyXconv/interlocking.tex.dep-pdf
parentddccb834d43fe1399df775cd411c710b6cb194b8 (diff)
atc_rail: Make sure speed limit in atc_set_lzb_tsr is number
Type-checking was done, but string values are not converted to numbers, causing hard-to-trace errors in advtrains/lzb.lua:175. There is risk of a crash loop if this is not fixed.
Diffstat (limited to 'assets/interlocking.html.LyXconv/interlocking.tex.dep-pdf')
0 files changed, 0 insertions, 0 deletions
f='#n124'>124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
local S
if minetest.get_modpath("intllib") then
    S = intllib.Getter()
else
    S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end
end

advtrains.register_wagon("subway_wagon", {
	mesh="advtrains_subway_wagon.b3d",
	textures = {"advtrains_subway_wagon.png"},
	drives_on={default=true},
	max_speed=15,
	seats = {
		{
			name="Driver stand",
			attach_offset={x=0, y=10, z=0},
			view_offset={x=0, y=0, z=0},
			group="dstand",
		},
		{
			name="1",
			attach_offset={x=-4, y=8, z=8},
			view_offset={x=0, y=0, z=0},
			group="pass",
		},
		{
			name="2",
			attach_offset={x=4, y=8, z=8},
			view_offset={x=0, y=0, z=0},
			group="pass",
		},
		{
			name="3",
			attach_offset={x=-4, y=8, z=-8},
			view_offset={x=0, y=0, z=0},