Chunnel: Adjust arguments of IsTunnelInWay

This commit is contained in:
Jonathan G Rennison
2017-03-04 12:21:24 +00:00
parent 13a716980a
commit 21bbb42d7e
4 changed files with 6 additions and 6 deletions

View File

@@ -270,7 +270,7 @@ CommandCost CmdTerraformLand(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
}
}
/* Check if tunnel would take damage */
if (direction == -1 && IsTunnelInWay(tile, z_min, false)) {
if (direction == -1 && IsTunnelInWay(tile, z_min, true)) {
_terraform_err_tile = tile; // highlight the tile above the tunnel
return_cmd_error(STR_ERROR_EXCAVATION_WOULD_DAMAGE);
}