Changeset - r23432:06074342c0f9
[Not reviewed]
master
0 1 0
Peter Nelson - 6 years ago 2019-02-16 00:15:21
peter1138@openttd.org
Fix: Show industry name in Land Area Information window for oil-rig type stations instead of just 'Oil Rig'
1 file changed with 8 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -3054,7 +3054,14 @@ static void GetTileDesc_Station(TileInde
 
			break;
 
		case STATION_TRUCK:    str = STR_LAI_STATION_DESCRIPTION_TRUCK_LOADING_AREA; break;
 
		case STATION_BUS:      str = STR_LAI_STATION_DESCRIPTION_BUS_STATION; break;
 
		case STATION_OILRIG:   str = STR_INDUSTRY_NAME_OIL_RIG; break;
 
		case STATION_OILRIG: {
 
			const Industry *i = Station::GetByTile(tile)->industry;
 
			const IndustrySpec *is = GetIndustrySpec(i->type);
 
			td->owner[0] = i->owner;
 
			str = is->name;
 
			if (is->grf_prop.grffile != NULL) td->grf = GetGRFConfig(is->grf_prop.grffile->grfid)->GetName();
 
			break;
 
		}
 
		case STATION_DOCK:     str = STR_LAI_STATION_DESCRIPTION_SHIP_DOCK; break;
 
		case STATION_BUOY:     str = STR_LAI_STATION_DESCRIPTION_BUOY; break;
 
		case STATION_WAYPOINT: str = STR_LAI_STATION_DESCRIPTION_WAYPOINT; break;
0 comments (0 inline, 0 general)