mirror of
https://github.com/kadeshar/mod-player-bot-level-brackets.git
synced 2026-01-13 01:08:36 +00:00
- code fix
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -48,5 +48,3 @@ local.properties
|
||||
.cproject
|
||||
.vscode/
|
||||
.vsconfig/
|
||||
/conf/.vs
|
||||
/.vs
|
||||
|
||||
@@ -467,6 +467,14 @@ static bool IsBotSafeForLevelReset(Player* bot)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (bot->GetSession()->isLogingOut())
|
||||
{
|
||||
if (g_BotDistFullDebugMode)
|
||||
{
|
||||
LOG_INFO("server.loading", "[BotLevelBrackets] Bot {} (Level {}) is logging out.", bot->GetName(), bot->GetLevel());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (!bot->IsInWorld())
|
||||
{
|
||||
if (g_BotDistFullDebugMode)
|
||||
@@ -537,6 +545,11 @@ static std::vector<PendingResetEntry> g_PendingLevelResets;
|
||||
|
||||
static void ProcessPendingLevelResets()
|
||||
{
|
||||
if (!sRandomPlayerbotMgr->GetDisabledWithoutRealPlayerLogoutInProgress())
|
||||
{
|
||||
g_PendingLevelResets.clear();
|
||||
return;
|
||||
}
|
||||
if (g_BotDistFullDebugMode)
|
||||
{
|
||||
LOG_INFO("server.loading", "[BotLevelBrackets] Processing {} pending resets...", g_PendingLevelResets.size());
|
||||
|
||||
Reference in New Issue
Block a user