mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
[Misc] fixed dead code, unused variables other merge errors introduced by commit 3879b5116e344469b33d60e05bb7ad05a27cfe7f
This commit is contained in:
parent
1e22738248
commit
6dddab7c1a
@ -250,30 +250,13 @@ bool BGJoinAction::shouldJoinBg(BattlegroundQueueTypeId queueTypeId, Battlegroun
|
|||||||
bool hasBots = (sRandomPlayerbotMgr->BgBots[queueTypeId][bracketId][TEAM_ALLIANCE] + sRandomPlayerbotMgr->BgBots[queueTypeId][bracketId][TEAM_HORDE]) >= bg->GetMinPlayersPerTeam();
|
bool hasBots = (sRandomPlayerbotMgr->BgBots[queueTypeId][bracketId][TEAM_ALLIANCE] + sRandomPlayerbotMgr->BgBots[queueTypeId][bracketId][TEAM_HORDE]) >= bg->GetMinPlayersPerTeam();
|
||||||
|
|
||||||
if (!sPlayerbotAIConfig->randomBotAutoJoinBG && !hasPlayers)
|
if (!sPlayerbotAIConfig->randomBotAutoJoinBG && !hasPlayers)
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (sPlayerbotAIConfig->enablePrototypePerformanceDiff)
|
if (!(hasPlayers || hasBots))
|
||||||
{
|
|
||||||
if (!noLag)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!hasPlayers && !(isArena))
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (sPlayerbotAIConfig->enablePrototypePerformanceDiff)
|
if (sPlayerbotAIConfig->enablePrototypePerformanceDiff && !hasPlayers && !noLag)
|
||||||
{
|
|
||||||
if (!noLag)
|
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32 BracketSize = bg->GetMaxPlayersPerTeam() * 2;
|
uint32 BracketSize = bg->GetMaxPlayersPerTeam() * 2;
|
||||||
uint32 TeamSize = bg->GetMaxPlayersPerTeam();
|
uint32 TeamSize = bg->GetMaxPlayersPerTeam();
|
||||||
@ -607,7 +590,6 @@ bool FreeBGJoinAction::shouldJoinBg(BattlegroundQueueTypeId queueTypeId, Battleg
|
|||||||
|
|
||||||
bool isArena = false;
|
bool isArena = false;
|
||||||
bool isRated = false;
|
bool isRated = false;
|
||||||
bool noLag = sWorldUpdateTime.GetAverageUpdateTime() < (sRandomPlayerbotMgr->GetPlayers().empty() ? sPlayerbotAIConfig->diffEmpty : sPlayerbotAIConfig->diffWithPlayer) * 1.1;
|
|
||||||
|
|
||||||
ArenaType type = ArenaType(BattlegroundMgr::BGArenaType(queueTypeId));
|
ArenaType type = ArenaType(BattlegroundMgr::BGArenaType(queueTypeId));
|
||||||
if (type != ARENA_TYPE_NONE)
|
if (type != ARENA_TYPE_NONE)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user