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 | 7fb3f54584fd9dd3266997cd12bd1853c18ad5bb (patch) | |
tree | 35f2cfc46313d08457c127c393370517d519fab3 /src/ai/trolly/build.cpp | |
parent | d4666b51eebaf8431a0f60e342182c57215db2ef (diff) | |
download | openttd-7fb3f54584fd9dd3266997cd12bd1853c18ad5bb.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; |