From dc208f351beb90244c7af9615428c70c37dbb40e Mon Sep 17 00:00:00 2001 From: megamage Date: Thu, 27 Aug 2009 20:28:28 -0500 Subject: [8427] remove afk-flag at bg-join Signed-off-by: balrok --HG-- branch : trunk --- src/game/BattleGround.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 68e758855a9..91e52858a65 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -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(); -- cgit v1.2.3