mirror of https://github.com/OpenTTD/OpenTTD
(svn r4072) - Backport from trunk (4071):
- Fix: [NPF] Trains & busses were unable to find a route when leaving a depot or bus stop. Small omission from r4023 (fix by glx)release/0.4
parent
a2c882af6f
commit
45a4c69842
2
npf.c
2
npf.c
|
@ -548,6 +548,8 @@ static void NPFFollowTrack(AyStar* aystar, OpenListNode* current)
|
|||
} else {
|
||||
dst_tile = INVALID_TILE; /* Road vehicle heading inwards: dead end */
|
||||
}
|
||||
} else {
|
||||
dst_tile = AddTileIndexDiffCWrap(src_tile, TileIndexDiffCByDir(exitdir));
|
||||
}
|
||||
} else {
|
||||
/* This a normal tile, a bridge, a tunnel exit, etc. */
|
||||
|
|
Loading…
Reference in New Issue