(svn r7583) -Fix (r7573): Merging of bridge branch broke (partially reverted?) automatic railtype conversion when building track on existing rail.
--- a/rail_cmd.c Wed Dec 27 18:25:17 2006 +0000
+++ b/rail_cmd.c Wed Dec 27 18:29:34 2006 +0000
@@ -253,7 +253,7 @@
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);
}