diff options
author | tron <tron@openttd.org> | 2006-07-26 12:11:52 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-07-26 12:11:52 +0000 |
commit | 53e740cb0d166b1ed5434ad17fa0a14921771db1 (patch) | |
tree | 7c68e6e500cc7e7675d09dc1312602789b43128f /rail_cmd.c | |
parent | 86e3804dadd974b092922b72c4b2a7c6b216f405 (diff) | |
download | openttd-53e740cb0d166b1ed5434ad17fa0a14921771db1.tar.xz |
(svn r5618) Remove a redundant check, CheckTrackCombination() a few lines above performs the same test
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index 8dc73c063..8909faf53 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); |