summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-11 17:44:55 +0000
committerglx <glx@openttd.org>2007-12-11 17:44:55 +0000
commitfb1d7689249d2553a188055aa8c68efa4e9294a6 (patch)
tree9e4371e18fc5fde0bd00876c036c6fefbe55eff1 /src/openttd.cpp
parent6f733823176c44be1a75f2f25b62f55ac0a62d85 (diff)
downloadopenttd-fb1d7689249d2553a188055aa8c68efa4e9294a6.tar.xz
(svn r11618) -Fix: buoys are just waypoints, so don't allow load/unload/transfert for them
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 6df56e31b..4e3d244a8 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2254,6 +2254,16 @@ bool AfterLoadGame()
}
}
+ /* Update go to buoy orders because they are just waypoints */
+ if (CheckSavegameVersion(84)) {
+ Order *order;
+ FOR_ALL_ORDERS(order) {
+ if (order->type == OT_GOTO_STATION && GetStation(order->dest)->IsBuoy()) {
+ order->flags = 0;
+ }
+ }
+ }
+
return InitializeWindowsAndCaches();
}