mirror of https://github.com/OpenTTD/OpenTTD
(svn r5618) Remove a redundant check, CheckTrackCombination() a few lines above performs the same test
parent
fbcdf3c24e
commit
6c6494588e
|
@ -259,8 +259,7 @@ int32 CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||||
!EnsureNoVehicle(tile)) {
|
!EnsureNoVehicle(tile)) {
|
||||||
return CMD_ERROR;
|
return CMD_ERROR;
|
||||||
}
|
}
|
||||||
if (GetRailTileType(tile) == RAIL_TILE_DEPOT_WAYPOINT ||
|
if (!IsTileOwner(tile, _current_player) ||
|
||||||
!IsTileOwner(tile, _current_player) ||
|
|
||||||
GetRailType(tile) != p1) {
|
GetRailType(tile) != p1) {
|
||||||
// Get detailed error message
|
// Get detailed error message
|
||||||
return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
|
||||||
|
|
Loading…
Reference in New Issue