From 45f65b1788f9f8cbc05b290ec2eac195f2581193 Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 30 Mar 2006 12:00:35 +0000 Subject: (svn r4173) -Codechange: Use IsClearWaterTile for buoy construction --- station_cmd.c | 7 +------ 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3-70-g09d2