diff options
author | megamage <none@none> | 2009-03-29 17:15:37 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-29 17:15:37 -0600 |
commit | e3da95f16a63cd014ded2ddbd588e1bda106936c (patch) | |
tree | 9baee09676df0d8545efa46e7f3a1c0802fc9086 /src/game/Object.cpp | |
parent | 43a08cdfa04baf18abe0a0bde507a2287ec7b551 (diff) |
[7578] Replace generic [7577] implememtaion by more explicit code. Author: VladimirMangos
This must restore build at Unix/Linux.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index c47c3625160..3189c3123ed 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1518,9 +1518,15 @@ void WorldObject::MonsterYell(int32 textId, uint32 language, uint64 TargetGuid) void WorldObject::MonsterYellToZone(int32 textId, uint32 language, uint64 TargetGuid) { - //MaNGOS::MonsterChatBuilder say_build(*this, CHAT_MSG_MONSTER_YELL, textId,language,TargetGuid); - //MaNGOS::LocalizedPacketDo<MaNGOS::MonsterChatBuilder> say_do(say_build); - //GetMap()->BroadcastWorker(say_do,GetZoneId()); + MaNGOS::MonsterChatBuilder say_build(*this, CHAT_MSG_MONSTER_YELL, textId,language,TargetGuid); + MaNGOS::LocalizedPacketDo<MaNGOS::MonsterChatBuilder> say_do(say_build); + + uint32 zoneid = GetZoneId(); + + Map::PlayerList const& pList = GetMap()->GetPlayers(); + for(Map::PlayerList::const_iterator itr = pList.begin(); itr != pList.end(); ++itr) + if(itr->getSource()->GetZoneId()==zoneid) + say_do(itr->getSource()); } void WorldObject::MonsterTextEmote(int32 textId, uint64 TargetGuid, bool IsBossEmote) |