diff options
author | QAston <none@none> | 2009-06-26 19:35:17 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-26 19:35:17 +0200 |
commit | ad182a6b2c1a72e96061583eff080f57db1c3676 (patch) | |
tree | fcdaa7671ac4fd84e6eb401dc7b6a33ab8de2cef | |
parent | 09717d7d810da7b56fa673fd3965d955b947a63b (diff) |
*Add debug log for asserts in BattleGroundAV::AssaultNode
--HG--
branch : trunk
-rw-r--r-- | src/game/BattleGroundAV.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/BattleGroundAV.cpp b/src/game/BattleGroundAV.cpp index a93b304e2b9..d02ebaa9e03 100644 --- a/src/game/BattleGroundAV.cpp +++ b/src/game/BattleGroundAV.cpp @@ -1378,10 +1378,10 @@ const char* BattleGroundAV::GetNodeName(BG_AV_Nodes node) void BattleGroundAV::AssaultNode(BG_AV_Nodes node, uint16 team) { - assert(m_Nodes[node].TotalOwner != team); - assert(m_Nodes[node].Owner != team); - assert(m_Nodes[node].State != POINT_DESTROYED); - assert(m_Nodes[node].State != POINT_ASSAULTED || !m_Nodes[node].TotalOwner ); //only assault an assaulted node if no totalowner exists + assert(m_Nodes[node].TotalOwner != team || sLog.outCrash("Assaulting team is TotalOwner of node")); + assert(m_Nodes[node].Owner != team || sLog.outCrash("Assaulting team is owner of node")); + assert(m_Nodes[node].State != POINT_DESTROYED || sLog.outCrash("Destroyed node is assaulted")); + assert(m_Nodes[node].State != POINT_ASSAULTED || !m_Nodes[node].TotalOwner || sLog.outCrash("Assault on an not assaulted node without total owner")); //only assault an assaulted node if no totalowner exists //the timer gets another time, if the previous owner was 0==Neutral m_Nodes[node].Timer = (m_Nodes[node].PrevOwner)? BG_AV_CAPTIME : BG_AV_SNOWFALL_FIRSTCAP; m_Nodes[node].PrevOwner = m_Nodes[node].Owner; |