summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-01 13:01:14 +0000
committertron <tron@openttd.org>2005-08-01 13:01:14 +0000
commit91353c841f3adde7f601ab4185e3486a034dbd04 (patch)
tree3566a6de856b142c5cfbe2c15e193bbe50e194df /tunnelbridge_cmd.c
parente06d017b91715f8e24fb2053bf62fc2ad9d1ae89 (diff)
downloadopenttd-91353c841f3adde7f601ab4185e3486a034dbd04.tar.xz
(svn r2780) Remove some more unused strings and make the use of a few strings more explicit
Diffstat (limited to 'tunnelbridge_cmd.c')
-rw-r--r--tunnelbridge_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c
index 5fc6b2d7c..4b1472b19 100644
--- a/tunnelbridge_cmd.c
+++ b/tunnelbridge_cmd.c
@@ -1288,7 +1288,8 @@ static const StringID _bridge_tile_str[(MAX_BRIDGES + 3) + (MAX_BRIDGES + 3)] =
static void GetTileDesc_TunnelBridge(TileIndex tile, TileDesc *td)
{
if ((_m[tile].m5 & 0x80) == 0) {
- td->str = STR_5017_RAILROAD_TUNNEL + GB(_m[tile].m5, 2, 2);
+ td->str =
+ (GB(_m[tile].m5, 2, 2) == 0) ? STR_5017_RAILROAD_TUNNEL : STR_5018_ROAD_TUNNEL;
} else {
td->str = _bridge_tile_str[GB(_m[tile].m5, 1, 2) << 4 | GB(_m[tile].m2, 4, 4)];