summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_rail.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-08 10:12:13 +0000
committerrubidium <rubidium@openttd.org>2009-09-08 10:12:13 +0000
commitdcd6b2096d0b8ecd1d9b95d56a8183e6bd604de6 (patch)
treeee8a9a27dff20f527d1de1e60a7c4799223d9a34 /src/ai/api/ai_rail.hpp
parent8cbcf17421a841696185db6318f2ed44ede9031c (diff)
downloadopenttd-dcd6b2096d0b8ecd1d9b95d56a8183e6bd604de6.tar.xz
(svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two.
Diffstat (limited to 'src/ai/api/ai_rail.hpp')
-rw-r--r--src/ai/api/ai_rail.hpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/ai/api/ai_rail.hpp b/src/ai/api/ai_rail.hpp
index 50da72057..2b662bc38 100644
--- a/src/ai/api/ai_rail.hpp
+++ b/src/ai/api/ai_rail.hpp
@@ -280,33 +280,26 @@ public:
static bool BuildRailWaypoint(TileIndex tile);
/**
- * Remove a rail waypoint.
- * @param tile Place to remove the waypoint from.
- * @pre AIMap::IsValidTile(tile).
- * @pre IsRailWaypointTile(tile).
- * @return Whether the rail waypoint has been/can be removed or not.
- */
- static bool RemoveRailWaypoint(TileIndex tile);
-
- /**
* Remove all rail waypoint pieces within a rectangle on the map.
* @param tile One corner of the rectangle to clear.
* @param tile2 The oppposite corner.
+ * @param keep_rail Whether to keep the rail after removal.
* @pre IsValidTile(tile).
* @pre IsValidTile(tile2).
* @return Whether at least one tile has been/can be cleared or not.
*/
- static bool RemoveRailWaypointTileRect(TileIndex tile, TileIndex tile2);
+ static bool RemoveRailWaypointTileRectangle(TileIndex tile, TileIndex tile2, bool keep_rail);
/**
* Remove all rail station platform pieces within a rectangle on the map.
* @param tile One corner of the rectangle to clear.
* @param tile2 The oppposite corner.
+ * @param keep_rail Whether to keep the rail after removal.
* @pre IsValidTile(tile).
* @pre IsValidTile(tile2).
* @return Whether at least one tile has been/can be cleared or not.
*/
- static bool RemoveRailStationTileRect(TileIndex tile, TileIndex tile2);
+ static bool RemoveRailStationTileRectangle(TileIndex tile, TileIndex tile2, bool keep_rail);
/**
* Get all RailTracks on the given tile.