1
0
mirror of https://github.com/SmallJoker/boost_cart.git synced 2024-12-25 02:10:19 +01:00

Pathfinder: Fix bounce back effect at rail end

This commit is contained in:
SmallJoker 2017-10-14 11:28:05 +02:00
parent 5502952bbd
commit be0c56edef

View File

@ -177,7 +177,7 @@ function boost_cart:pathfinder(pos_, old_pos, old_dir, distance, ctrl,
for i = 1, distance do
pf_dir, pf_switch = self:get_rail_direction(
pf_pos, pf_dir, ctrl, pf_switch, railtype)
pf_pos, pf_dir, ctrl, pf_switch or 0, railtype)
if vector.equals(pf_dir, {x=0, y=0, z=0}) then
-- No way forwards