[Bug Fix] Check Rule "Bots Enabled" to prevent bot database calls on connect (#3154)

* [Bug Fix] Check for Rule "Bots Enabled" to prevent bot database calls if not enabled.

* formatting

* check if LoadBotsList failed, or is bots_list empty
This commit is contained in:
Aeadoin
2023-03-28 22:44:47 -04:00
committed by GitHub
parent e9c63c7d94
commit 7854130a93
3 changed files with 31 additions and 23 deletions
+1 -1
View File
@@ -2033,6 +2033,7 @@ public:
void SetBotSpawnLimit(int new_spawn_limit, uint8 class_id = NO_CLASS);
void CampAllBots(uint8 class_id = NO_CLASS);
void SpawnRaidBotsOnConnect(Raid* raid);
private:
bool bot_owner_options[_booCount];
@@ -2042,7 +2043,6 @@ private:
bool CanTradeFVNoDropItem();
void SendMobPositions();
void PlayerTradeEventLog(Trade *t, Trade *t2);
};
#endif