diff options
author | megamage <none@none> | 2009-02-13 19:56:22 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-13 19:56:22 -0600 |
commit | 8eb1f455a101df2316e75f247a3c96d7debbbc36 (patch) | |
tree | b9b190483173e2d36d322a6be8d4b43a35a27fdb /src/game/WorldSession.cpp | |
parent | f2c663a363966eeb49b0a69cf3e482af891e4d1d (diff) |
[7269] Use enum type for battleground queue type ids, and related cleanups.
* renamed a variable to make the content of it more clear: type->arenaslot
* renamed BattleGroundQueueTypeId-variables to bgQueueTypeId
just to make it easier reading the code (cause there existed
3 different names for this..)
* renamed GetBattleGroundQueueId to GetBattleGroundQueueTypeId
again this is just for better understanding
* Renamed [GS]etQueueType and m_Queue_type
* Renamed to [GS]etQueueId and m_QueueId
Author: balrok
--HG--
branch : trunk
Diffstat (limited to 'src/game/WorldSession.cpp')
-rw-r--r-- | src/game/WorldSession.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/WorldSession.cpp b/src/game/WorldSession.cpp index edcb0dc8a39..b7da09af1b2 100644 --- a/src/game/WorldSession.cpp +++ b/src/game/WorldSession.cpp @@ -322,10 +322,10 @@ void WorldSession::LogoutPlayer(bool Save) for (int i=0; i < PLAYER_MAX_BATTLEGROUND_QUEUES; i++) { - if(int32 bgTypeId = _player->GetBattleGroundQueueId(i)) + if(BattleGroundQueueTypeId bgQueueTypeId = _player->GetBattleGroundQueueTypeId(i)) { - _player->RemoveBattleGroundQueueId(bgTypeId); - sBattleGroundMgr.m_BattleGroundQueues[ bgTypeId ].RemovePlayer(_player->GetGUID(), true); + _player->RemoveBattleGroundQueueId(bgQueueTypeId); + sBattleGroundMgr.m_BattleGroundQueues[ bgQueueTypeId ].RemovePlayer(_player->GetGUID(), true); } } |