summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-05-09 09:56:09 +0000
committertron <tron@openttd.org>2006-05-09 09:56:09 +0000
commitc9defc0fea20dc900c0c6d3f8aac8984b024052f (patch)
tree559b2b4b3e046cf2cb59f9c2eacbb8ea4f57cbb5 /road_cmd.c
parente5bd292dabdf5bbf58e5ce83c13688bbe047a62a (diff)
downloadopenttd-c9defc0fea20dc900c0c6d3f8aac8984b024052f.tar.xz
(svn r4790) Remove slope magic from EnsureNoVehicleZ() and rename it to EnsureNoVehicleOnGround() to make more clear what it does
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index e1d7a09a3..52c2df2b2 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -125,7 +125,7 @@ int32 CmdRemoveRoad(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
switch (GetTileType(tile)) {
case MP_TUNNELBRIDGE:
- if (!EnsureNoVehicleZ(tile, TilePixelHeight(tile))) return CMD_ERROR;
+ if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR;
if (!IsBridge(tile) ||
!IsBridgeMiddle(tile) ||