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
+1 -1
View File
@@ -142,7 +142,7 @@ bool ArenaTeam::AddMember(const uint64& PlayerGuid)
plMMRating = sWorld.getIntConfig(CONFIG_ARENA_START_MATCHMAKER_RATING);
plPRating = 0;
if (sWorld.getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING) > 0)
plPRating = sWorld.getIntConfig(CONFIG_ARENA_START_PERSONAL_RATING);
else if (GetRating() >= 1000)
@@ -55,7 +55,7 @@ void BattlegroundDS::Update(uint32 diff)
UpdateArenaWorldState();
CheckArenaAfterTimerConditions();
}
}
}
if (getWaterFallTimer() < diff)
{
@@ -55,7 +55,7 @@ void BattlegroundNA::Update(uint32 diff)
UpdateArenaWorldState();
CheckArenaAfterTimerConditions();
}
}
}
}
void BattlegroundNA::StartingEventCloseDoors()
@@ -55,7 +55,7 @@ void BattlegroundRL::Update(uint32 diff)
UpdateArenaWorldState();
CheckArenaAfterTimerConditions();
}
}
}
}
void BattlegroundRL::StartingEventCloseDoors()
@@ -55,7 +55,7 @@ void BattlegroundRV::Update(uint32 diff)
UpdateArenaWorldState();
CheckArenaAfterTimerConditions();
}
}
}
if (getTimer() < diff)
{