summaryrefslogtreecommitdiff
path: root/ai/trolly/build.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-09-05 23:21:41 +0000
committerDarkvater <Darkvater@openttd.org>2006-09-05 23:21:41 +0000
commit7e4d0f112edbe2acb8ceebdf3161fa7c90cd66f9 (patch)
treef2f14fca9ac095b0bf6b46615035b8c207e3ce66 /ai/trolly/build.c
parenta53c92464f2d87bcb9e8b31a1f68d5e26e29aded (diff)
downloadopenttd-7e4d0f112edbe2acb8ceebdf3161fa7c90cd66f9.tar.xz
(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir().
Diffstat (limited to 'ai/trolly/build.c')
-rw-r--r--ai/trolly/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai/trolly/build.c b/ai/trolly/build.c
index 35359016a..f90336f20 100644
--- a/ai/trolly/build.c
+++ b/ai/trolly/build.c
@@ -292,7 +292,7 @@ int AiNew_Build_Depot(Player* p, TileIndex tile, DiagDirection direction, byte f
ret = AI_DoCommand(tile, direction, 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD_DEPOT);
if (CmdFailed(ret)) return ret;
// Try to build the road from the depot
- ret2 = AI_DoCommand(tile + TileOffsByDir(direction), DiagDirToRoadBits(ReverseDiagDir(direction)), 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD);
+ ret2 = AI_DoCommand(tile + TileOffsByDiagDir(direction), DiagDirToRoadBits(ReverseDiagDir(direction)), 0, flag | DC_AUTO | DC_NO_WATER, CMD_BUILD_ROAD);
// If it fails, ignore it..
if (CmdFailed(ret2)) return ret;
return ret + ret2;