mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10: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
|
|
@ -469,7 +469,7 @@ void BattleGroundAB::Reset()
|
||||||
}
|
}
|
||||||
|
|
||||||
m_IsInformedNearVictory = false;
|
m_IsInformedNearVictory = false;
|
||||||
bool isBGWeekend = sBattleGroundMgr.IsBGWeekend(GetTypeID());
|
bool isBGWeekend = BattleGroundMgr::IsBGWeekend(GetTypeID());
|
||||||
m_HonorTics = (isBGWeekend) ? BG_AB_ABBGWeekendHonorTicks : BG_AB_NotABBGWeekendHonorTicks;
|
m_HonorTics = (isBGWeekend) ? BG_AB_ABBGWeekendHonorTicks : BG_AB_NotABBGWeekendHonorTicks;
|
||||||
m_ReputationTics = (isBGWeekend) ? BG_AB_ABBGWeekendReputationTicks : BG_AB_NotABBGWeekendReputationTicks;
|
m_ReputationTics = (isBGWeekend) ? BG_AB_ABBGWeekendReputationTicks : BG_AB_NotABBGWeekendReputationTicks;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -430,7 +430,7 @@ void BattleGroundEY::Reset()
|
||||||
m_DroppedFlagGUID = 0;
|
m_DroppedFlagGUID = 0;
|
||||||
m_PointAddingTimer = 0;
|
m_PointAddingTimer = 0;
|
||||||
m_TowerCapCheckTimer = 0;
|
m_TowerCapCheckTimer = 0;
|
||||||
bool isBGWeekend = sBattleGroundMgr.IsBGWeekend(GetTypeID());
|
bool isBGWeekend = BattleGroundMgr::IsBGWeekend(GetTypeID());
|
||||||
m_HonorTics = (isBGWeekend) ? BG_EY_EYWeekendHonorTicks : BG_EY_NotEYWeekendHonorTicks;
|
m_HonorTics = (isBGWeekend) ? BG_EY_EYWeekendHonorTicks : BG_EY_NotEYWeekendHonorTicks;
|
||||||
|
|
||||||
for(uint8 i = 0; i < BG_EY_NODES_MAX; ++i)
|
for(uint8 i = 0; i < BG_EY_NODES_MAX; ++i)
|
||||||
|
|
|
||||||
|
|
@ -534,7 +534,7 @@ void BattleGroundWS::Reset()
|
||||||
m_FlagState[i] = BG_WS_FLAG_STATE_ON_BASE;
|
m_FlagState[i] = BG_WS_FLAG_STATE_ON_BASE;
|
||||||
m_TeamScores[i] = 0;
|
m_TeamScores[i] = 0;
|
||||||
}
|
}
|
||||||
bool isBGWeekend = sBattleGroundMgr.IsBGWeekend(GetTypeID());
|
bool isBGWeekend = BattleGroundMgr::IsBGWeekend(GetTypeID());
|
||||||
m_ReputationCapture = (isBGWeekend) ? 45 : 35;
|
m_ReputationCapture = (isBGWeekend) ? 45 : 35;
|
||||||
m_HonorWinKills = (isBGWeekend) ? 3 : 1;
|
m_HonorWinKills = (isBGWeekend) ? 3 : 1;
|
||||||
m_HonorEndKills = (isBGWeekend) ? 4 : 2;
|
m_HonorEndKills = (isBGWeekend) ? 4 : 2;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8565"
|
#define REVISION_NR "8566"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue