diff options
| author | n0n4m3 <none@none> | 2009-12-17 14:06:20 +0100 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2009-12-17 14:06:20 +0100 |
| commit | eccf162be2e8cb821087f49dfd9a0885e6c0e73c (patch) | |
| tree | 9c52c4f530cc864538278167a93601463629eb0e /src/game/BattleGroundRV.cpp | |
| parent | 89656d5749f72803edbdd5f9840ba6b4c21f3987 (diff) | |
Fixed compile errors and some typos
--HG--
branch : trunk
Diffstat (limited to 'src/game/BattleGroundRV.cpp')
| -rw-r--r-- | src/game/BattleGroundRV.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/game/BattleGroundRV.cpp b/src/game/BattleGroundRV.cpp index 16bdd54ade1..39ff09fe521 100644 --- a/src/game/BattleGroundRV.cpp +++ b/src/game/BattleGroundRV.cpp @@ -120,7 +120,8 @@ void BattleGroundRV::AddPlayer(Player *plr) m_PlayerScores[plr->GetGUID()] = sc; - UpdateArenaUnitWorldState(); + UpdateWorldState(BG_RV_WORLD_STATE_A, GetAlivePlayersCountByTeam(ALLIANCE)); + UpdateWorldState(BG_RV_WORLD_STATE_H, GetAlivePlayersCountByTeam(HORDE)); } void BattleGroundRV::RemovePlayer(Player * /*plr*/, uint64 /*guid*/) @@ -128,7 +129,9 @@ void BattleGroundRV::RemovePlayer(Player * /*plr*/, uint64 /*guid*/) if (GetStatus() == STATUS_WAIT_LEAVE) return; - UpdateArenaUnitWorldState(); + UpdateWorldState(BG_RV_WORLD_STATE_A, GetAlivePlayersCountByTeam(ALLIANCE)); + UpdateWorldState(BG_RV_WORLD_STATE_H, GetAlivePlayersCountByTeam(HORDE)); + CheckArenaWinConditions(); } @@ -145,7 +148,9 @@ void BattleGroundRV::HandleKillPlayer(Player *player, Player *killer) BattleGround::HandleKillPlayer(player, killer); - UpdateArenaUnitWorldState(); + UpdateWorldState(BG_RV_WORLD_STATE_A, GetAlivePlayersCountByTeam(ALLIANCE)); + UpdateWorldState(BG_RV_WORLD_STATE_H, GetAlivePlayersCountByTeam(HORDE)); + CheckArenaWinConditions(); } @@ -175,9 +180,9 @@ void BattleGroundRV::HandleAreaTrigger(Player *Source, uint32 Trigger) void BattleGroundRV::FillInitialWorldStates(WorldPacket &data) { + data << uint32(BG_RV_WORLD_STATE_A) << uint32(GetAlivePlayersCountByTeam(ALLIANCE)); + data << uint32(BG_RV_WORLD_STATE_H) << uint32(GetAlivePlayersCountByTeam(HORDE)); data << uint32(BG_RV_WORLD_STATE) << uint32(1); - - UpdateArenaUnitWorldState(); } void BattleGroundRV::Reset() |
