File diff r9713:e2acfa26cf4a → r9714:24e754d1822b
src/town_cmd.cpp
Show inline comments
 
@@ -616,12 +616,19 @@ static void GetAcceptedCargo_Town(TileIn
 

	
 
static void GetTileDesc_Town(TileIndex tile, TileDesc *td)
 
{
 
	td->str = GetHouseSpecs(GetHouseType(tile))->building_name;
 
	const HouseSpec *hs = GetHouseSpecs(GetHouseType(tile));
 

	
 
	td->str = hs->building_name;
 
	if (!IsHouseCompleted(tile)) {
 
		SetDParamX(td->dparam, 0, td->str);
 
		td->str = STR_2058_UNDER_CONSTRUCTION;
 
	}
 

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

	
 
	td->owner[0] = OWNER_TOWN;
 
}