diff options
author | glx <glx@openttd.org> | 2007-12-11 17:44:55 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-12-11 17:44:55 +0000 |
commit | fb1d7689249d2553a188055aa8c68efa4e9294a6 (patch) | |
tree | 9e4371e18fc5fde0bd00876c036c6fefbe55eff1 /src/openttd.cpp | |
parent | 6f733823176c44be1a75f2f25b62f55ac0a62d85 (diff) | |
download | openttd-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.cpp | 10 |
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(); } |