diff options
author | frosch <frosch@openttd.org> | 2008-08-04 18:54:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-08-04 18:54:19 +0000 |
commit | 96b9fba333c5785643a9e5376708772db7aa93d9 (patch) | |
tree | cdd6cb16c6293941568dc97e5056344cf76cc4e1 /src | |
parent | b1eaf763e12c4c03a865f7a44cbfe11fbd2121b2 (diff) | |
download | openttd-96b9fba333c5785643a9e5376708772db7aa93d9.tar.xz |
(svn r13996) -Fix (r13845): Oilrigs from pre r13838 save games can have unknown water class.
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |