Avoid increasing player count per team when re-logging (#165)
This commit is contained in:
parent
53a6a9d176
commit
49b5f58f13
@ -1309,7 +1309,11 @@ void BattleGround::AddPlayer(Player* plr)
|
|||||||
// Add to list/maps
|
// Add to list/maps
|
||||||
m_Players[guid] = bp;
|
m_Players[guid] = bp;
|
||||||
|
|
||||||
|
bool const isInBattleground = IsPlayerInBattleGround(guid);
|
||||||
|
if (!isInBattleground)
|
||||||
|
{
|
||||||
UpdatePlayersCountByTeam(team, false); // +1 player
|
UpdatePlayersCountByTeam(team, false); // +1 player
|
||||||
|
}
|
||||||
|
|
||||||
WorldPacket data;
|
WorldPacket data;
|
||||||
sBattleGroundMgr.BuildPlayerJoinedBattleGroundPacket(&data, plr);
|
sBattleGroundMgr.BuildPlayerJoinedBattleGroundPacket(&data, plr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user