1
0
mirror of https://github.com/SmallJoker/boost_cart.git synced 2024-12-24 09:50:19 +01:00

Disallow rail switching up/downhill

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

View File

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