(svn r16785) -Codechange: make ships going to buoys use OT_GOTO_WAYPOINT too

This commit is contained in:
rubidium
2009-07-10 18:30:02 +00:00
parent 07dbd830b6
commit 026f3c8feb
6 changed files with 68 additions and 16 deletions

View File

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