From eb4a2e45c320d6ff5fe72dc8a04b16f6740eb134 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 27 Dec 2006 18:29:34 +0000 Subject: [PATCH] (svn r7583) -Fix (r7573): Merging of bridge branch broke (partially reverted?) automatic railtype conversion when building track on existing rail. --- rail_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rail_cmd.c b/rail_cmd.c index 7c4963fe81..78ba7c2ad7 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -253,7 +253,7 @@ int32 CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) return CMD_ERROR; } if (!IsTileOwner(tile, _current_player) || - GetRailType(tile) != railtype) { + !IsCompatibleRail(GetRailType(tile), railtype)) { // Get detailed error message return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); }