summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2011-11-07 19:35:02 +0000
committermichi_cc <michi_cc@openttd.org>2011-11-07 19:35:02 +0000
commitfe574b7e0cf3d1a4c3d748b7bda521aa7b10ed7c (patch)
treecc15cdf7bb17bd1636a7dca14742fa93e490abcb /src/rail_cmd.cpp
parent58b75963dd9c91d5616d519c84f0c1ac3f519041 (diff)
downloadopenttd-fe574b7e0cf3d1a4c3d748b7bda521aa7b10ed7c.tar.xz
(svn r23129) -Add: [NewGRF] Property for the rail type name.
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 936f413e5..cc780bfde 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -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;