(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

@@ -332,7 +332,7 @@ static uint32 SimulateDrag(TileIndex from, TileIndex tile, TileIndex *to)
(::TileX(from) == ::TileX(tile) && ::TileX(tile) == ::TileX(to)) ||
(::TileY(from) == ::TileY(tile) && ::TileY(tile) == ::TileY(to)));
uint32 p2 = SimulateDrag(from, tile, &to);
uint32 p2 = SimulateDrag(from, tile, &to) | 1 << 8;
return AIObject::DoCommand(tile, to, p2, CMD_BUILD_RAILROAD_TRACK);
}