(svn r23129) -Add: [NewGRF] Property for the rail type name.

This commit is contained in:
michi_cc
2011-11-07 19:35:02 +00:00
parent 58b75963dd
commit fe574b7e0c
55 changed files with 45 additions and 1190 deletions

View File

@@ -31,6 +31,7 @@
#include "company_base.h"
#include "core/backup_type.hpp"
#include "date_func.h"
#include "strings_func.h"
#include "table/strings.h"
#include "table/railtypes.h"
@@ -2594,6 +2595,7 @@ static void GetTileDesc_Track(TileIndex tile, TileDesc *td)
const RailtypeInfo *rti = GetRailTypeInfo(GetRailType(tile));
td->rail_speed = rti->max_speed;
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;