diff options
author | rubidium <rubidium@openttd.org> | 2009-09-08 10:12:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-08 10:12:13 +0000 |
commit | dcd6b2096d0b8ecd1d9b95d56a8183e6bd604de6 (patch) | |
tree | ee8a9a27dff20f527d1de1e60a7c4799223d9a34 /bin/ai | |
parent | 8cbcf17421a841696185db6318f2ed44ede9031c (diff) | |
download | openttd-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 'bin/ai')
-rw-r--r-- | bin/ai/compat_0.7.nut | 10 | ||||
-rw-r--r-- | bin/ai/regression/regression.nut | 2 | ||||
-rw-r--r-- | bin/ai/regression/regression.txt | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut index 1702f7963..18f5a2a3a 100644 --- a/bin/ai/compat_0.7.nut +++ b/bin/ai/compat_0.7.nut @@ -76,3 +76,13 @@ AITown.GetMaxProduction <- function(town_id, cargo_id) { return AITown.GetLastMonthProduction(town_id, cargo_id); } + +AIRail.RemoveRailWaypoint <- function(tile) +{ + return AIRail.RemoveRailWaypointTileRect(tile, tile, true); +} + +AIRail.RemoveRailStationTileRect <- function(tile, tile2) +{ + return AIRail.RemoveRailStationTileRectangle(tile, tile2, false); +} diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut index 495a43399..790cfbe33 100644 --- a/bin/ai/regression/regression.nut +++ b/bin/ai/regression/regression.nut @@ -964,7 +964,7 @@ function Regression::Rail() print(" IsRailStationTile(): " + AIRail.IsRailStationTile(7957)); print(" IsRailStationTile(): " + AIRail.IsRailStationTile(7958)); print(" IsRailStationTile(): " + AIRail.IsRailStationTile(7959)); - print(" RemoveRailStationTileRect(): " + AIRail.RemoveRailStationTileRect(7959, 7959)); + print(" RemoveRailStationTileRectangle():" + AIRail.RemoveRailStationTileRectangle(7959, 7959, false)); print(" IsRailStationTile(): " + AIRail.IsRailStationTile(7957)); print(" IsRailStationTile(): " + AIRail.IsRailStationTile(7958)); print(" IsRailStationTile(): " + AIRail.IsRailStationTile(7959)); diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt index d4a8df1d5..67035255a 100644 --- a/bin/ai/regression/regression.txt +++ b/bin/ai/regression/regression.txt @@ -7137,7 +7137,7 @@ IsRailStationTile(): false IsRailStationTile(): true IsRailStationTile(): true - RemoveRailStationTileRect(): true + RemoveRailStationTileRectangle():true IsRailStationTile(): false IsRailStationTile(): true IsRailStationTile(): false |