aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-27 20:28:28 -0500
committermegamage <none@none>2009-08-27 20:28:28 -0500
commitdc208f351beb90244c7af9615428c70c37dbb40e (patch)
tree9feae5ec22e092ac39298fdb57147fd56a4acf8e /src/game/BattleGround.cpp
parentdd72b5524c01ef081e1a35f65a3967652a314e5f (diff)
[8427] remove afk-flag at bg-join
Signed-off-by: balrok <der-coole-carl@gmx.net> --HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r--src/game/BattleGround.cpp4
1 files changed, 4 insertions, 0 deletions
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();