mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r20489) -Fix [FS#4031]: [NoAI] checking whether water tiles are connected failed in some cases
This commit is contained in:
parent
05f480af19
commit
7ae80eec64
@ -59,7 +59,7 @@
|
||||
/* Tiles not neighbouring */
|
||||
if (::DistanceManhattan(t1, t2) != 1) return false;
|
||||
|
||||
DiagDirection to_other_tile = ::DiagdirBetweenTiles(t1, t2);
|
||||
DiagDirection to_other_tile = ::DiagdirBetweenTiles(t2, t1);
|
||||
|
||||
/* Determine the reachable tracks from the shared edge */
|
||||
TrackBits gtts1 = ::TrackStatusToTrackBits(::GetTileTrackStatus(t1, TRANSPORT_WATER, 0, to_other_tile)) & ::DiagdirReachesTracks(to_other_tile);
|
||||
|
Loading…
Reference in New Issue
Block a user