Ru-MaNGOS

Ru-MaNGOS (http://mangos.ytdb.ru/index.php)
-   Принятые патчи (http://mangos.ytdb.ru/forumdisplay.php?f=5)
-   -   Remove out of date comment. (http://mangos.ytdb.ru/showthread.php?t=5379)

Den 23.04.2012 19:28

Remove out of date comment.
 
Код:

diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index 9fe3d66..0f4d43d 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -446,14 +446,14 @@ void BattleGround::Update(uint32 diff)
            SetStatus(STATUS_IN_PROGRESS);
            SetStartDelayTime(m_StartDelayTimes[BG_STARTING_EVENT_FOURTH]);
 
-            //remove preparation
+            // remove preparation
            if (isArena())
            {
-                //TODO : add arena sound PlaySoundToAll(SOUND_ARENA_START);
-
-                for(BattleGroundPlayerMap::const_iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
-                    if (Player *plr = sObjectMgr.GetPlayer(itr->first))
-                        plr->RemoveAurasDueToSpell(SPELL_ARENA_PREPARATION);
+                for (BattleGroundPlayerMap::const_iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
+                {
+                    if (Player* player = sObjectMgr.GetPlayer(itr->first))
+                        player->RemoveAurasDueToSpell(SPELL_ARENA_PREPARATION);
+                }
 
                CheckArenaWinConditions();
            }


schmoozerd 24.04.2012 23:21

In [11978]. Thank you!


Текущее время: 17:38. Часовой пояс GMT +3.

ru-mangos.ru - Русское сообщество MaNGOS