Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.70 KB | None | 0 0
  1.     //if destroy or damage event, search the wall/tower and update worldstate/send warning message
  2.     for(GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
  3.     {
  4.         if(obj->GetEntry()==(*itr)->m_Build->GetEntry()){
  5.             if((*itr)->m_Build->GetGOInfo()->building.damagedEvent==eventId)
  6.             {
  7.                 if(obj->GetEntry() == 191810 || ...)
  8.                     SendWarningToAllInZone(BATTLEFIELD_WG_FORTRESS_UNDER_ATTACK);
  9.                 (*itr)->Damaged();
  10.             }
  11.  
  12.             if((*itr)->m_Build->GetGOInfo()->building.destroyedEvent==eventId)
  13.                 (*itr)->Destroyed();
  14.  
  15.             break;
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement