summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-30 12:00:35 +0000
committercelestar <celestar@openttd.org>2006-03-30 12:00:35 +0000
commitb364658f42e6a844a3bb768eec2ec0243dabf9cd (patch)
tree2f1c0e17bbc4680ddf1f9afddecaef7f0b4d45ac
parent8a91805c059c40ca4e75a2e6053724d3c8f11582 (diff)
downloadopenttd-b364658f42e6a844a3bb768eec2ec0243dabf9cd.tar.xz
(svn r4173) -Codechange: Use IsClearWaterTile for buoy construction
-rw-r--r--station_cmd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 95b0f7dab..d5b5afea0 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1684,12 +1684,7 @@ int32 CmdBuildBuoy(int x, int y, uint32 flags, uint32 p1, uint32 p2)
SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
- if (!IsTileType(tile, MP_WATER) ||
- _m[tile].m5 != 0 ||
- GetTileSlope(tile, NULL) != 0 ||
- tile == 0) {
- return_cmd_error(STR_304B_SITE_UNSUITABLE);
- }
+ if (!IsClearWaterTile(tile) || tile == 0) return_cmd_error(STR_304B_SITE_UNSUITABLE);
st = AllocateStation();
if (st == NULL) return CMD_ERROR;