From 4768c3f87cce7a7759631994e94317b4fa948931 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 5 Mar 2010 23:20:02 +0000 Subject: [PATCH] (svn r19322) -Codechange: change the id of the oilrig airport from 15 to 9 --- src/airport.h | 2 +- src/saveload/afterload.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/airport.h b/src/airport.h index 8f640704ab..c3b2c5d83b 100644 --- a/src/airport.h +++ b/src/airport.h @@ -36,7 +36,7 @@ enum { AT_INTERCON = 7, AT_HELISTATION = 8, NUM_AIRPORTS = 9, - AT_OILRIG = 15, + AT_OILRIG = 9, AT_DUMMY = 255 }; diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index e4c3e865af..e4069b1bbc 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -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; }