diff options
Diffstat (limited to 'ai_build.c')
-rw-r--r-- | ai_build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ai_build.c b/ai_build.c index 2530a78b6..e8f9edf95 100644 --- a/ai_build.c +++ b/ai_build.c @@ -250,7 +250,7 @@ int AiNew_Build_Depot(Player *p, uint tile, byte direction, byte flag) { r = DoCommandByTile(tile, direction, 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_DEPOT); if (r == CMD_ERROR) return r; // Try to build the road from the depot - r2 = DoCommandByTile(tile + _tileoffs_by_dir[direction], _roadbits_by_dir[direction], 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD); + r2 = DoCommandByTile(tile + TileOffsByDir(direction), _roadbits_by_dir[direction], 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD); // If it fails, ignore it.. if (r2 == CMD_ERROR) return r; return r + r2; |