mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2024-12-24 09:50:19 +01:00
Pathfinder: Fix bounce back effect at rail end
This commit is contained in:
parent
5502952bbd
commit
be0c56edef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user