diff options
author | tron <tron@openttd.org> | 2006-03-07 07:51:05 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-07 07:51:05 +0000 |
commit | 313754011d04ad4913bf4028b78d75ceb359e9b3 (patch) | |
tree | 99b7d8d8952db8e2911e906960659f1307c048e5 /clear_cmd.c | |
parent | a172b194c2473baaf5b5ea340ea4fe00b7835236 (diff) | |
download | openttd-313754011d04ad4913bf4028b78d75ceb359e9b3.tar.xz |
(svn r3779) Move CheckTunnelInWay() to a more appropriate place, invert its result and give it a less ambiguous name (IsTunnelInWay)
Diffstat (limited to 'clear_cmd.c')
-rw-r--r-- | clear_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } } |