changeset 5582 | 0b1e6b9a1bdb |
parent 5573 | afa6f92a71fd |
child 5590 | dc34c43fc3eb |
child 5662 | 2dd848654f54 |
--- 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); }