(svn r17004) -Fix (r16909): StationRect of loading buoys/waypoints wasn't correctly set when loading 'old' games.

This commit is contained in:
rubidium 2009-07-31 19:04:22 +00:00
parent 9f2f4f8364
commit 0bb3d7030f
2 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,8 @@ void MoveBuoysToWaypoints()
if (IsBuoyTile(xy) && GetStationIndex(xy) == index) {
wp->facilities |= FACIL_DOCK;
}
wp->rect.BeforeAddTile(st->xy, StationRect::ADD_FORCE);
}
}

View File

@ -109,6 +109,7 @@ void MoveWaypointsToBaseStations()
if (wp->spec != NULL) {
SetCustomStationSpecIndex(t, AllocateSpecToStation(wp->spec, new_wp, true));
}
new_wp->rect.BeforeAddTile(t, StationRect::ADD_FORCE);
}
wp->new_index = new_wp->index;