(svn r16785) -Codechange: make ships going to buoys use OT_GOTO_WAYPOINT too
This commit is contained in:
@@ -1944,6 +1944,14 @@ bool AfterLoadGame()
|
||||
}
|
||||
s->cargo_type = CT_INVALID;
|
||||
}
|
||||
|
||||
Order *o;
|
||||
FOR_ALL_ORDERS(o) {
|
||||
/* Buoys are now go to waypoint orders */
|
||||
if (!o->IsType(OT_GOTO_STATION) || !Station::Get(o->GetDestination())->IsBuoy()) continue;
|
||||
|
||||
o->MakeGoToWaypoint(o->GetDestination());
|
||||
}
|
||||
}
|
||||
|
||||
AfterLoadLabelMaps();
|
||||
|
Reference in New Issue
Block a user