Changeset - r15672:5af7b8d5f1d3
[Not reviewed]
master
0 2 0
rubidium - 14 years ago 2010-08-03 16:38:15
rubidium@openttd.org
(svn r20348) -Fix [FS#4004]: [NoAI] Ship depots were constructed along the wrong axis
2 files changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/api/ai_marine.cpp
Show inline comments
 
@@ -77,7 +77,7 @@
 
	EnforcePrecondition(false, ::IsValidTile(front));
 
	EnforcePrecondition(false, (::TileX(front) == ::TileX(tile)) != (::TileY(front) == ::TileY(tile)));
 

	
 
	return AIObject::DoCommand(tile, ::TileY(front) == ::TileY(tile), 0, CMD_BUILD_SHIP_DEPOT);
 
	return AIObject::DoCommand(tile, ::TileX(front) == ::TileX(tile), 0, CMD_BUILD_SHIP_DEPOT);
 
}
 

	
 
/* static */ bool AIMarine::BuildDock(TileIndex tile, StationID station_id)
src/ai/api/ai_marine.hpp
Show inline comments
 
@@ -107,6 +107,7 @@ public:
 
	 * @exception AIMarine::ERR_MARINE_MUST_BE_BUILT_ON_WATER
 
	 * @return Whether the water depot has been/can be build or not.
 
	 * @note A WaterDepot is 1 tile in width, and 2 tiles in length.
 
	 * @note The depot will be built towards the south from 'tile', not necessarily towards 'front'.
 
	 */
 
	static bool BuildWaterDepot(TileIndex tile, TileIndex front);
 

	
0 comments (0 inline, 0 general)