Core: Add new system for parallelizing client packet processing. Handle WorldSession updates in Map::Update() where we are safe to proceed. Patch by Ambal.

(And clean up tabs and whitespace while rummaging around in there)
Closes issue 5084.

--HG--
branch : trunk
This commit is contained in:
click
2010-12-13 22:37:56 +01:00
parent 89a33bbf61
commit 2642894342
58 changed files with 1625 additions and 1502 deletions
@@ -151,7 +151,7 @@ class boss_archaedas : public CreatureScript
return;
// wake a wall minion
if (uiWallMinionTimer <= uiDiff)
if (uiWallMinionTimer <= uiDiff)
{
pInstance->SetData (DATA_MINIONS, IN_PROGRESS);
@@ -159,7 +159,7 @@ class boss_archaedas : public CreatureScript
} else uiWallMinionTimer -= uiDiff;
//If we are <66 summon the guardians
if (!bGuardiansAwake && !HealthAbovePct(66))
if (!bGuardiansAwake && !HealthAbovePct(66))
{
ActivateMinion(pInstance->GetData64(5),true); // EarthenGuardian1
ActivateMinion(pInstance->GetData64(6),true); // EarthenGuardian2
@@ -196,7 +196,7 @@ class boss_archaedas : public CreatureScript
DoMeleeAttackIfReady();
}
void JustDied (Unit * /*pKiller*/)
void JustDied (Unit * /*pKiller*/)
{
if (pInstance)
{
@@ -130,7 +130,7 @@ class instance_uldaman : public InstanceMapScript
case GO_IRONAYA_SEAL_DOOR:
uiIronayaSealDoor = go->GetGUID();
if (m_auiEncounter[2] == DONE)
if (m_auiEncounter[2] == DONE)
HandleGameObject(NULL, true, go);
break;
@@ -353,7 +353,7 @@ class instance_uldaman : public InstanceMapScript
switch(data)
{
case NOT_STARTED:
if (m_auiEncounter[0] == DONE) //if players opened the doors
if (m_auiEncounter[0] == DONE) //if players opened the doors
SetDoor(uiArchaedasTempleDoor, true);
RespawnMinions();