From beae3fe00fd97ae217d8c37ae2ecf857e26f3c80 Mon Sep 17 00:00:00 2001 From: balrok Date: Thu, 27 Aug 2009 12:20:12 +0200 Subject: [PATCH] [8427] remove afk-flag at bg-join Signed-off-by: balrok --- src/game/BattleGround.cpp | 4 ++++ src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp index 9c70da28e..d40078c5a 100644 --- a/src/game/BattleGround.cpp +++ b/src/game/BattleGround.cpp @@ -1099,6 +1099,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(); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f56684e1e..908fbe872 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8426" + #define REVISION_NR "8427" #endif // __REVISION_NR_H__