changeset 4180 | 72f8362401b6 |
parent 4158 | a8f7265a6fd0 |
child 4182 | 20d711816338 |
--- 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);