From b5b691155b75bcb6161bb3100c77127396ce15a5 Mon Sep 17 00:00:00 2001 From: Antz Date: Sun, 16 Jul 2017 22:44:02 +0100 Subject: [PATCH] [FIX] full block {} expected in the control structure. Part 1 --- contrib/dbcEditer/dbcedit.cpp | 4 +++- src/game/AuctionHouseBot/AuctionHouseBot.cpp | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/contrib/dbcEditer/dbcedit.cpp b/contrib/dbcEditer/dbcedit.cpp index 7a8a3cca..272ddb6a 100644 --- a/contrib/dbcEditer/dbcedit.cpp +++ b/contrib/dbcEditer/dbcedit.cpp @@ -270,7 +270,9 @@ void __fastcall TFrmMain::ToolButton1Click(TObject* Sender) } } if (SeFlag) ShowMessage("Seach Top£¬Find Nothing."); - break; + { + break; + } case 1: //ÏòÏÂÕÒ; for (int i = sgEdit->ColCount * sgEdit->Row + sgEdit->Col + 1; i < sgEdit->ColCount * sgEdit->RowCount; i++) { diff --git a/src/game/AuctionHouseBot/AuctionHouseBot.cpp b/src/game/AuctionHouseBot/AuctionHouseBot.cpp index 6b0d3bde..16b91fed 100644 --- a/src/game/AuctionHouseBot/AuctionHouseBot.cpp +++ b/src/game/AuctionHouseBot/AuctionHouseBot.cpp @@ -1265,23 +1265,35 @@ bool AuctionBotSeller::Initialize() case ITEM_CLASS_WEAPON: { if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MIN_ITEM_LEVEL)) + { if (prototype->ItemLevel < value) { continue; } + } if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MAX_ITEM_LEVEL)) + { if (prototype->ItemLevel > value) { continue; } + } if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MIN_REQ_LEVEL)) + { if (prototype->RequiredLevel < value) { continue; } + } if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MAX_REQ_LEVEL)) + { if (prototype->RequiredLevel > value) { continue; } + } if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MIN_SKILL_RANK)) + { if (prototype->RequiredSkillRank < value) { continue; } + } if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MAX_SKILL_RANK)) + { if (prototype->RequiredSkillRank > value) { continue; } + } break; } case ITEM_CLASS_RECIPE: @@ -1289,17 +1301,25 @@ bool AuctionBotSeller::Initialize() case ITEM_CLASS_PROJECTILE: { if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MIN_REQ_LEVEL)) + { if (prototype->RequiredLevel < value) { continue; } + } if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MAX_REQ_LEVEL)) + { if (prototype->RequiredLevel > value) { continue; } + } if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MIN_SKILL_RANK)) + { if (prototype->RequiredSkillRank < value) { continue; } + } if (uint32 value = sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_ITEM_MAX_SKILL_RANK)) + { if (prototype->RequiredSkillRank > value) { continue; } + } break; } case ITEM_CLASS_MISC: