From 91353c841f3adde7f601ab4185e3486a034dbd04 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 1 Aug 2005 13:01:14 +0000 Subject: (svn r2780) Remove some more unused strings and make the use of a few strings more explicit --- tunnelbridge_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tunnelbridge_cmd.c') 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)]; -- cgit v1.2.3-54-g00ecf