Changeset - r14332:a4aaeb37e5be
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-01-23 16:38:09
frosch@openttd.org
(svn r18897) -Fix: Land area information read the stationspec also for non-rail-stationtiles, which is no longer valid since r18876.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2518,23 +2518,25 @@ static void GetTileDesc_Station(TileInde
 
				td->owner[i] = tram_owner;
 
			}
 
		}
 
	}
 
	td->build_date = BaseStation::GetByTile(tile)->build_date;
 

	
 
	if (HasStationTileRail(tile)) {
 
	const StationSpec *spec = GetStationSpec(tile);
 

	
 
	if (spec != NULL) {
 
		td->station_class = GetStationClassName(spec->sclass);
 
		td->station_name = spec->name;
 

	
 
		if (spec->grffile != NULL) {
 
			const GRFConfig *gc = GetGRFConfig(spec->grffile->grfid);
 
			td->grf = gc->name;
 
		}
 
	}
 
	}
 

	
 
	StringID str;
 
	switch (GetStationType(tile)) {
 
		default: NOT_REACHED();
 
		case STATION_RAIL:     str = STR_LAI_STATION_DESCRIPTION_RAILROAD_STATION; break;
 
		case STATION_AIRPORT:
0 comments (0 inline, 0 general)