diff options
-rw-r--r-- | pathfind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathfind.c b/pathfind.c index 97c5e3521..c4703026d 100644 --- a/pathfind.c +++ b/pathfind.c @@ -341,8 +341,8 @@ static void TPFMode1(TrackPathFinder* tpf, TileIndex tile, DiagDirection directi if (tpf->hasbit_13) return; - tile = tile_org; direction = ReverseDiagDir(direction); + tile += TileOffsByDiagDir(direction); bits = GetTileTrackStatus(tile, tpf->tracktype); bits |= (bits >> 8); |