(svn r27686) -Change: List railtype of rail tiles explicitly in the tile info window.

This commit is contained in:
frosch
2016-12-09 21:27:22 +00:00
parent f294258b18
commit 4753097c3d
7 changed files with 37 additions and 24 deletions

View File

@@ -2720,8 +2720,8 @@ static void GetTileDesc_Track(TileIndex tile, TileDesc *td)
{
const RailtypeInfo *rti = GetRailTypeInfo(GetRailType(tile));
td->rail_speed = rti->max_speed;
td->railtype = rti->strings.name;
td->owner[0] = GetTileOwner(tile);
SetDParamX(td->dparam, 0, rti->strings.name);
switch (GetRailTileType(tile)) {
case RAIL_TILE_NORMAL:
td->str = STR_LAI_RAIL_DESCRIPTION_TRACK;