Disallow rail switching up/downhill

This commit is contained in:
SmallJoker 2018-07-04 21:23:06 +02:00
parent c6b9e4b672
commit 7e275e1985

@ -107,7 +107,7 @@ function boost_cart:get_rail_direction(pos_, dir, ctrl, old_switch, railtype)
right.z = -dir.x right.z = -dir.x
end end
if ctrl then if ctrl and dir.y == 0 then
if old_switch == 1 then if old_switch == 1 then
left_check = false left_check = false
elseif old_switch == 2 then elseif old_switch == 2 then