From 7e4d0f112edbe2acb8ceebdf3161fa7c90cd66f9 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 5 Sep 2006 23:21:41 +0000 Subject: (svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir(). --- ai/trolly/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai/trolly/build.c') 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; -- cgit v1.2.3-70-g09d2