From 6c6494588ed8251e69f08a30af697aa0e089439c Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 26 Jul 2006 12:11:52 +0000 Subject: [PATCH] (svn r5618) Remove a redundant check, CheckTrackCombination() a few lines above performs the same test --- rail_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rail_cmd.c b/rail_cmd.c index 8dc73c063b..8909faf530 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -259,8 +259,7 @@ int32 CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) !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);