(svn r18987) -Fix: [NoAI] Make building long rails fail for AIs if there is an obstacle in the way.

This commit is contained in:
terkhen
2010-02-02 22:27:03 +00:00
parent 7f26268d0e
commit ad561fc6f2
3 changed files with 7 additions and 2 deletions

View File

@@ -380,6 +380,7 @@ public:
* @exception AIRail::ERR_CROSSING_ON_ONEWAY_ROAD
* @exception AIRoad::ERR_ROAD_WORKS_IN_PROGRESS
* @exception AIError::ERR_ALREADY_BUILT
* @note Construction will fail if an obstacle is found between the start and end tiles.
* @return Whether the rail has been/can be build or not.
*/
static bool BuildRail(TileIndex from, TileIndex tile, TileIndex to);