(svn r16897) -Codechange: use the 'generic' station spec to station allocation for waypoints too

This commit is contained in:
rubidium
2009-07-21 11:20:34 +00:00
parent 43eda3dfbf
commit ed5ced71c8
6 changed files with 11 additions and 33 deletions

View File

@@ -997,7 +997,7 @@ bool AfterLoadGame()
FOR_ALL_WAYPOINTS(wp) {
if (wp->delete_ctr == 0) {
if (HasBit(_m[wp->xy].m3, 4)) {
wp->AssignStationSpec(_m[wp->xy].m4 + 1);
AllocateSpecToStation(GetCustomStationSpec(STAT_CLASS_WAYP, _m[wp->xy].m4 + 1), wp, true);
}
/* Move ground type bits from m2 to m4. */