[8427] remove afk-flag at bg-join

Signed-off-by: balrok <der-coole-carl@gmx.net>
This commit is contained in:
balrok 2009-08-27 12:20:12 +02:00
parent 5d50bb16b8
commit beae3fe00f
2 changed files with 5 additions and 1 deletions

View file

@ -1099,6 +1099,10 @@ void BattleGround::StartBattleGround()
void BattleGround::AddPlayer(Player *plr) 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 // score struct must be created in inherited class
uint64 guid = plr->GetGUID(); uint64 guid = plr->GetGUID();

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8426" #define REVISION_NR "8427"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__