mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r4071) - Fix: [NPF] Trains & busses were unable to find a route when leaving a depot or bus stop. Small omission from r4023 (fix by glx)
This commit is contained in:
parent
da2ebf897d
commit
4e3714b391
2
npf.c
2
npf.c
@ -563,6 +563,8 @@ static void NPFFollowTrack(AyStar* aystar, OpenListNode* current)
|
|||||||
} else {
|
} else {
|
||||||
dst_tile = INVALID_TILE; /* Road vehicle heading inwards: dead end */
|
dst_tile = INVALID_TILE; /* Road vehicle heading inwards: dead end */
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
dst_tile = AddTileIndexDiffCWrap(src_tile, TileIndexDiffCByDir(exitdir));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* This a normal tile, a bridge, a tunnel exit, etc. */
|
/* This a normal tile, a bridge, a tunnel exit, etc. */
|
||||||
|
Loading…
Reference in New Issue
Block a user