(svn r5618) Remove a redundant check, CheckTrackCombination() a few lines above performs the same test
authortron
Wed, 26 Jul 2006 12:11:52 +0000
changeset 4180 72f8362401b6
parent 4179 9e09dfdc1316
child 4181 94388be6086b
(svn r5618) Remove a redundant check, CheckTrackCombination() a few lines above performs the same test
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);