summaryrefslogtreecommitdiff
path: root/rail_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 /rail_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 'rail_cmd.c')
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 773c981cd..89a03d047 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -349,7 +349,7 @@ int32 CmdRemoveSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
GetTransportTypeUnderBridge(tile) != TRANSPORT_RAIL ||
GetRailBitsUnderBridge(tile) != trackbit ||
(_current_player != OWNER_WATER && !CheckTileOwnership(tile)) ||
- !EnsureNoVehicleZ(tile, TilePixelHeight(tile))) {
+ !EnsureNoVehicleOnGround(tile)) {
return CMD_ERROR;
}