(svn r13996) -Fix (r13845): Oilrigs from pre r13838 save games can have unknown water class.

This commit is contained in:
frosch 2008-08-04 18:54:19 +00:00
parent b1eaf763e1
commit 96b9fba333
1 changed files with 1 additions and 1 deletions

View File

@ -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 {