diff -r d0407b8e20ce -r 0b1e6b9a1bdb rail_cmd.c --- 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); }