Changeset - r15804:a7adcc31c56c
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-08-14 09:46:36
rubidium@openttd.org
(svn r20489) -Fix [FS#4031]: [NoAI] checking whether water tiles are connected failed in some cases
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/api/ai_marine.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)