# HG changeset patch # User rubidium # Date 2008-08-17 13:56:11 # Node ID 62eb4c7cfdd786615c16cc872b4c33c3054cd592 # Parent 14dcbb705e6b75cbf77d5347b3fe14860e8647d6 (svn r14093) -Fix [FS#2230]: don't flood a NewGRF industry when it implicitly tells that it wants to be build on water (land shape flags bit 5). diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -423,7 +423,9 @@ static CommandCost ClearTile_Industry(Ti if ((_current_player != OWNER_WATER && _game_mode != GM_EDITOR && !_cheats.magic_bulldozer.value) || ((flags & DC_AUTO) != 0) || - (_current_player == OWNER_WATER && (indspec->behaviour & INDUSTRYBEH_BUILT_ONWATER))) { + (_current_player == OWNER_WATER && + ((indspec->behaviour & INDUSTRYBEH_BUILT_ONWATER) || + HasBit(GetIndustryTileSpec(GetIndustryGfx(tile))->slopes_refused, 5)))) { SetDParam(0, indspec->name); return_cmd_error(STR_4800_IN_THE_WAY); }