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 11 insertions and 9 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2521,15 +2521,17 @@ static void GetTileDesc_Station(TileInde
 
	}
 
	td->build_date = BaseStation::GetByTile(tile)->build_date;
 

	
 
	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;
 
	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;
 
			}
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)