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
commiteb4a2e45c320d6ff5fe72dc8a04b16f6740eb134 (patch)
tree1156f91253185a5c5812e240f482a17288eb496d
parent8a812544ecbb2d154b07c83a106029c0c6a0cf1b (diff)
downloadopenttd-eb4a2e45c320d6ff5fe72dc8a04b16f6740eb134.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);
}