Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //if destroy or damage event, search the wall/tower and update worldstate/send warning message
- for(GameObjectBuilding::const_iterator itr = BuildingsInZone.begin(); itr != BuildingsInZone.end(); ++itr)
- {
- if(obj->GetEntry()==(*itr)->m_Build->GetEntry()){
- if((*itr)->m_Build->GetGOInfo()->building.damagedEvent==eventId)
- {
- if(obj->GetEntry() == 191810 || ...)
- SendWarningToAllInZone(BATTLEFIELD_WG_FORTRESS_UNDER_ATTACK);
- (*itr)->Damaged();
- }
- if((*itr)->m_Build->GetGOInfo()->building.destroyedEvent==eventId)
- (*itr)->Destroyed();
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement