# HG changeset patch # User tron # Date 1153915912 0 # Node ID 72f8362401b66c3176406b18dfa96fee8d63dca3 # Parent 9e09dfdc1316f78dda84fbb72664ec191dbbcba0 (svn r5618) Remove a redundant check, CheckTrackCombination() a few lines above performs the same test diff -r 9e09dfdc1316 -r 72f8362401b6 rail_cmd.c --- a/rail_cmd.c Wed Jul 26 10:50:46 2006 +0000 +++ b/rail_cmd.c Wed Jul 26 12:11:52 2006 +0000 @@ -259,8 +259,7 @@ !EnsureNoVehicle(tile)) { return CMD_ERROR; } - if (GetRailTileType(tile) == RAIL_TILE_DEPOT_WAYPOINT || - !IsTileOwner(tile, _current_player) || + if (!IsTileOwner(tile, _current_player) || GetRailType(tile) != p1) { // Get detailed error message return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);