diff options
author | yexo <yexo@openttd.org> | 2010-03-18 21:02:20 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-03-18 21:02:20 +0000 |
commit | c4a88ce0225a57243a79e28d133c2ecd884bee68 (patch) | |
tree | 766e1e5469d2c9d2956f5d6c79fd5bba787cf2ca /src/saveload/afterload.cpp | |
parent | 0eb5709c86f8dbfdcf7f91a178e46be4a1bc53d0 (diff) | |
download | openttd-c4a88ce0225a57243a79e28d133c2ecd884bee68.tar.xz |
(svn r19455) -Codechange: split all airport information in Station to a seperate class
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index 15777af79..abe4013ee 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -594,8 +594,8 @@ bool AfterLoadGame() if (CheckSavegameVersion(139)) { Station *st; FOR_ALL_STATIONS(st) { - if (st->airport.tile != INVALID_TILE && st->airport_type == 15) { - st->airport_type = AT_OILRIG; + if (st->airport.tile != INVALID_TILE && st->airport.type == 15) { + st->airport.type = AT_OILRIG; } } } @@ -734,7 +734,7 @@ bool AfterLoadGame() * It was 3 (till 2.2) and later 5 (till 5.1). * Setting it unconditionally does not hurt. */ - Station::GetByTile(t)->airport_type = AT_OILRIG; + Station::GetByTile(t)->airport.type = AT_OILRIG; } else { DeleteOilRig(t); } @@ -2095,8 +2095,8 @@ bool AfterLoadGame() Station *st; FOR_ALL_STATIONS(st) { if (st->airport.tile != INVALID_TILE) { - st->airport.w = st->GetAirportSpec()->size_x; - st->airport.h = st->GetAirportSpec()->size_y; + st->airport.w = st->airport.GetSpec()->size_x; + st->airport.h = st->airport.GetSpec()->size_y; } } } |