(svn r12617) -Codechange: add type safety to the Order's load and unload types.
This commit is contained in:
@@ -2306,8 +2306,8 @@ bool AfterLoadGame()
|
||||
Order *order;
|
||||
FOR_ALL_ORDERS(order) {
|
||||
if (order->IsType(OT_GOTO_STATION) && GetStation(order->GetDestination())->IsBuoy()) {
|
||||
order->SetLoadType(0);
|
||||
order->SetUnloadType(0);
|
||||
order->SetLoadType(OLF_LOAD_IF_POSSIBLE);
|
||||
order->SetUnloadType(OUF_UNLOAD_IF_POSSIBLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user