mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r19322) -Codechange: change the id of the oilrig airport from 15 to 9
This commit is contained in:
parent
8ddb33a3bc
commit
4768c3f87c
@ -36,7 +36,7 @@ enum {
|
|||||||
AT_INTERCON = 7,
|
AT_INTERCON = 7,
|
||||||
AT_HELISTATION = 8,
|
AT_HELISTATION = 8,
|
||||||
NUM_AIRPORTS = 9,
|
NUM_AIRPORTS = 9,
|
||||||
AT_OILRIG = 15,
|
AT_OILRIG = 9,
|
||||||
AT_DUMMY = 255
|
AT_DUMMY = 255
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2067,6 +2067,7 @@ bool AfterLoadGame()
|
|||||||
Station *st;
|
Station *st;
|
||||||
FOR_ALL_STATIONS(st) {
|
FOR_ALL_STATIONS(st) {
|
||||||
if (st->airport.tile != INVALID_TILE) {
|
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.w = st->GetAirportSpec()->size_x;
|
||||||
st->airport.h = st->GetAirportSpec()->size_y;
|
st->airport.h = st->GetAirportSpec()->size_y;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user