(svn r11618) -Fix: buoys are just waypoints, so don't allow load/unload/transfert for them

This commit is contained in:
glx
2007-12-11 17:44:55 +00:00
parent 6f73382317
commit fb1d768924
3 changed files with 20 additions and 8 deletions

View File

@@ -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();
}