[8427] remove afk-flag at bg-join

Signed-off-by: balrok <[email protected]>

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-27 20:28:28 -05:00
parent dd72b5524c
commit dc208f351b
+4
View File
@@ -1135,6 +1135,10 @@ void BattleGround::StartBattleGround()
void BattleGround::AddPlayer(Player *plr)
{
// remove afk from player
if (plr->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK))
plr->ToggleAFK();
// score struct must be created in inherited class
uint64 guid = plr->GetGUID();