diff options
author | rubidium <rubidium@openttd.org> | 2007-07-29 23:42:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-29 23:42:59 +0000 |
commit | 2800a49f0361b586573e8d3c78a1ecb13e414b18 (patch) | |
tree | 35f2cfc46313d08457c127c393370517d519fab3 /src/ai/trolly/build.cpp | |
parent | a15df67f9a3d78f1b55b9fdd7b780b26f2cf60d3 (diff) | |
download | openttd-2800a49f0361b586573e8d3c78a1ecb13e414b18.tar.xz |
(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type.
Diffstat (limited to 'src/ai/trolly/build.cpp')
-rw-r--r-- | src/ai/trolly/build.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/trolly/build.cpp b/src/ai/trolly/build.cpp index 41c80529c..6d5e9a32f 100644 --- a/src/ai/trolly/build.cpp +++ b/src/ai/trolly/build.cpp @@ -199,7 +199,7 @@ CommandCost AiNew_Build_RoutePart(Player *p, Ai_PathFinderInfo *PathFinderInfo, // Build the tile res = AI_DoCommand(route[part], dir, 0, flag | DC_NO_WATER, CMD_BUILD_ROAD); // Currently, we ignore CMD_ERRORs! - if (CmdFailed(res) && flag == DC_EXEC && !IsTileType(route[part], MP_STREET) && !EnsureNoVehicle(route[part])) { + if (CmdFailed(res) && flag == DC_EXEC && !IsTileType(route[part], MP_ROAD) && !EnsureNoVehicle(route[part])) { // Problem.. let's just abort it all! DEBUG(ai, 0, "[BuidPath] route building failed at tile 0x%X, aborting", route[part]); p->ainew.state = AI_STATE_NOTHING; |