From 96b9fba333c5785643a9e5376708772db7aa93d9 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 4 Aug 2008 18:54:19 +0000 Subject: (svn r13996) -Fix (r13845): Oilrigs from pre r13838 save games can have unknown water class. --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index d3e69216b..baa3392c3 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2221,7 +2221,7 @@ static void DrawTile_Station(TileInfo *ti) if (t == NULL || t->seq == NULL) t = &_station_display_datas[GetStationType(ti->tile)][GetStationGfx(ti->tile)]; - if (IsBuoy(ti->tile) || IsDock(ti->tile) || IsOilRig(ti->tile)) { + if (IsBuoy(ti->tile) || IsDock(ti->tile) || (IsOilRig(ti->tile) && GetWaterClass(ti->tile) != WATER_CLASS_INVALID)) { if (ti->tileh == SLOPE_FLAT) { DrawWaterClassGround(ti); } else { -- cgit v1.2.3-70-g09d2