diff options
author | tron <tron@openttd.org> | 2006-05-09 09:56:09 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-05-09 09:56:09 +0000 |
commit | c9defc0fea20dc900c0c6d3f8aac8984b024052f (patch) | |
tree | 559b2b4b3e046cf2cb59f9c2eacbb8ea4f57cbb5 /road_cmd.c | |
parent | e5bd292dabdf5bbf58e5ce83c13688bbe047a62a (diff) | |
download | openttd-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.c | 2 |
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) || |