# HG changeset patch # User celestar # Date 2006-03-30 12:00:35 # Node ID 634ee8be4222583e72a26d178b873dc93f785d4e # Parent 1ed18d2c1b0c38c99c366b82113b399bad1c2b9c (svn r4173) -Codechange: Use IsClearWaterTile for buoy construction diff --git a/station_cmd.c b/station_cmd.c --- a/station_cmd.c +++ b/station_cmd.c @@ -1684,12 +1684,7 @@ int32 CmdBuildBuoy(int x, int y, uint32 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;