mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[8566] avoid singleton-lock when accessing BattleGroundMGR::isBGWeekend()
proposed by vladimir
This commit is contained in:
parent
8246a8c310
commit
4f35eaebd5
4 changed files with 4 additions and 4 deletions
|
|
@ -534,7 +534,7 @@ void BattleGroundWS::Reset()
|
|||
m_FlagState[i] = BG_WS_FLAG_STATE_ON_BASE;
|
||||
m_TeamScores[i] = 0;
|
||||
}
|
||||
bool isBGWeekend = sBattleGroundMgr.IsBGWeekend(GetTypeID());
|
||||
bool isBGWeekend = BattleGroundMgr::IsBGWeekend(GetTypeID());
|
||||
m_ReputationCapture = (isBGWeekend) ? 45 : 35;
|
||||
m_HonorWinKills = (isBGWeekend) ? 3 : 1;
|
||||
m_HonorEndKills = (isBGWeekend) ? 4 : 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue