summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-09 08:49:40 +0000
committercelestar <celestar@openttd.org>2005-01-09 08:49:40 +0000
commite17a8989cf87ee7b94199873429b238e9c0c8d62 (patch)
treebb721cddb60cfba5c5be705c3ef5a06382d8bbb8 /ttd.c
parent13dda253341dda556ce063e49ac97b6e6b8f1abf (diff)
downloadopenttd-e17a8989cf87ee7b94199873429b238e9c0c8d62.tar.xz
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
terminals in every group can be freely chosen -Codechange: AT_OILRIG is now 15, so that new airports can be added easily.
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ttd.c b/ttd.c
index 1a26dbfb3..266ca8571 100644
--- a/ttd.c
+++ b/ttd.c
@@ -1250,13 +1250,14 @@ void UpdateVoidTiles()
memset(_map_type_and_height + MapMaxY() * MapSizeX(), MP_VOID << 4, MapSizeX());
}
-extern void UpdateOldAircraft();
+extern void UpdateOldAircraft( void );
+extern void UpdateOilRig( void );
bool AfterLoadGame(uint version)
{
Window *w;
ViewPort *vp;
-
+
// in version 2.1 of the savegame, town owner was unified.
if (version <= 0x200) {
ConvertTownOwner();
@@ -1354,6 +1355,11 @@ bool AfterLoadGame(uint version)
DoZoomInOutWindow(ZOOM_NONE, w); // update button status
MarkWholeScreenDirty();
+ //In 5.1, Oilrigs have been moved (again)
+ if (version <= 0x500) {
+ UpdateOilRig();
+ }
+
return true;
}