(svn r11618) -Fix: buoys are just waypoints, so don't allow load/unload/transfert for them
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user