From ebfef9683eb1db6895099de9d64f030364bc6dac Mon Sep 17 00:00:00 2001 From: celestar Date: Wed, 22 Mar 2006 11:11:52 +0000 Subject: [PATCH] (svn r4013) -Fix last commit. CheckTunnelInWay works differently from IsTunnelInWay :S --- clear_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clear_cmd.c b/clear_cmd.c index a5a9b31bdb..a698d3c534 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -260,7 +260,7 @@ int32 CmdTerraformLand(int x, int y, uint32 flags, uint32 p1, uint32 p2) } else return_cmd_error(STR_5800_OBJECT_IN_THE_WAY); } - if (direction == -1 && CheckTunnelInWay(tile, min)) return_cmd_error(STR_1002_EXCAVATION_WOULD_DAMAGE); + if (direction == -1 && !CheckTunnelInWay(tile, min)) return_cmd_error(STR_1002_EXCAVATION_WOULD_DAMAGE); _terraform_err_tile = 0; }