mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[8615] fixed wrong assert in av-code
when alliance captured snowfall and horde assaulted this grave while assault in progress crashes could happen
This commit is contained in:
parent
17b0c43ea9
commit
29e6601335
2 changed files with 3 additions and 2 deletions
|
|
@ -737,7 +737,8 @@ void BattleGroundAV::AssaultNode(BG_AV_Nodes node, uint32 team)
|
|||
assert(team < 3); // alliance:0, horde:1, neutral:2
|
||||
assert(m_Nodes[node].TotalOwner != team);
|
||||
assert(m_Nodes[node].Owner != team);
|
||||
assert(m_Nodes[node].State != POINT_ASSAULTED || !m_Nodes[node].TotalOwner ); // only assault an assaulted node if no totalowner exists
|
||||
// only assault an assaulted node if no totalowner exists:
|
||||
assert(m_Nodes[node].State != POINT_ASSAULTED || m_Nodes[node].TotalOwner == BG_AV_NEUTRAL_TEAM);
|
||||
// the timer gets another time, if the previous owner was 0 == Neutral
|
||||
m_Nodes[node].Timer = (m_Nodes[node].PrevOwner != BG_AV_NEUTRAL_TEAM) ? BG_AV_CAPTIME : BG_AV_SNOWFALL_FIRSTCAP;
|
||||
m_Nodes[node].PrevOwner = m_Nodes[node].Owner;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue