From 313754011d04ad4913bf4028b78d75ceb359e9b3 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 7 Mar 2006 07:51:05 +0000 Subject: (svn r3779) Move CheckTunnelInWay() to a more appropriate place, invert its result and give it a less ambiguous name (IsTunnelInWay) --- clear_cmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clear_cmd.c') diff --git a/clear_cmd.c b/clear_cmd.c index c3ac7c73e..591f2a1ab 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -10,6 +10,7 @@ #include "tile.h" #include "viewport.h" #include "command.h" +#include "tunnel_map.h" #include "variables.h" #include "table/sprites.h" @@ -277,7 +278,7 @@ int32 CmdTerraformLand(int x, int y, uint32 flags, uint32 p1, uint32 p2) t = TerraformGetHeightOfTile(&ts, tile + TileDiffXY(0, 1)); if (t <= z) z = t; - if (!CheckTunnelInWay(tile, z * 8)) { + if (IsTunnelInWay(tile, z * 8)) { return_cmd_error(STR_1002_EXCAVATION_WOULD_DAMAGE); } } -- cgit v1.2.3-54-g00ecf