(svn r19322) -Codechange: change the id of the oilrig airport from 15 to 9

This commit is contained in:
yexo 2010-03-05 23:20:02 +00:00
parent 8ddb33a3bc
commit 4768c3f87c
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ enum {
AT_INTERCON = 7,
AT_HELISTATION = 8,
NUM_AIRPORTS = 9,
AT_OILRIG = 15,
AT_OILRIG = 9,
AT_DUMMY = 255
};

View File

@ -2067,6 +2067,7 @@ bool AfterLoadGame()
Station *st;
FOR_ALL_STATIONS(st) {
if (st->airport.tile != INVALID_TILE) {
if (st->airport_type == 15) st->airport_type = AT_OILRIG;
st->airport.w = st->GetAirportSpec()->size_x;
st->airport.h = st->GetAirportSpec()->size_y;
}