summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_road.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-02-24 21:53:16 +0000
committerterkhen <terkhen@openttd.org>2010-02-24 21:53:16 +0000
commitaba24e44cf76479a33e78cc0a8d6d5279aeef00b (patch)
tree54f07fa2f6fe65cb5ea8737300c10678394c0fba /src/ai/api/ai_road.cpp
parent70b1bc5048cf67ab93daf6eb8fb053037c2c976f (diff)
downloadopenttd-aba24e44cf76479a33e78cc0a8d6d5279aeef00b.tar.xz
(svn r19230) -Feature: Allow to remove multiple road stops using drag and drop.
Diffstat (limited to 'src/ai/api/ai_road.cpp')
-rw-r--r--src/ai/api/ai_road.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_road.cpp b/src/ai/api/ai_road.cpp
index e486d3dc1..b9ffc68be 100644
--- a/src/ai/api/ai_road.cpp
+++ b/src/ai/api/ai_road.cpp
@@ -578,7 +578,7 @@ static bool NeighbourHasReachableRoad(::RoadTypes rts, TileIndex start_tile, Dia
EnforcePrecondition(false, IsTileType(tile, MP_STATION));
EnforcePrecondition(false, IsRoadStop(tile));
- return AIObject::DoCommand(tile, 0, GetRoadStopType(tile), CMD_REMOVE_ROAD_STOP);
+ return AIObject::DoCommand(tile, 1 | 1 << 8, GetRoadStopType(tile), CMD_REMOVE_ROAD_STOP);
}
/* static */ Money AIRoad::GetBuildCost(RoadType roadtype, BuildType build_type)