summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-12-27 18:29:34 +0000
committerpeter1138 <peter1138@openttd.org>2006-12-27 18:29:34 +0000
commit0fbd8c8006ee1548417f86fc3f5d8c71f14d36b4 (patch)
tree1156f91253185a5c5812e240f482a17288eb496d
parent17e8ce42020a9354a1eb61f7488b4e0ac22772dc (diff)
downloadopenttd-0fbd8c8006ee1548417f86fc3f5d8c71f14d36b4.tar.xz
(svn r7583) -Fix (r7573): Merging of bridge branch broke (partially reverted?) automatic railtype conversion when building track on existing rail.
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 7c4963fe8..78ba7c2ad 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);
}