Mercurial > hg > openttd
changeset 4180:91f70f748e26 draft
(svn r5618) Remove a redundant check, CheckTrackCombination() a few lines above performs the same test
author | tron <tron@openttd.org> |
---|---|
date | Wed, 26 Jul 2006 12:11:52 +0000 |
parents | ee520257fa9d |
children | f7c2409b5e37 |
files | rail_cmd.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rail_cmd.c +++ b/rail_cmd.c @@ -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);