*Fix build.
--HG-- branch : trunk
This commit is contained in:
1 parent
aeefdeb8db
commit
f71dff82c6
3 files changed
+78
-87
No files matched your search
@@ -2548,6 +2548,24 @@ void World::SendGlobalMessage(WorldPacket *packet, WorldSession *self, uint32 te
|
||||
}
|
||||
}
|
||||
|
||||
/// Send a packet to all GMs (except self if mentioned)
|
||||
void World::SendGlobalGMMessage(WorldPacket *packet, WorldSession *self, uint32 team)
|
||||
{
|
||||
SessionMap::iterator itr;
|
||||
for (itr = m_sessions.begin(); itr != m_sessions.end(); ++itr)
|
||||
{
|
||||
if (itr->second &&
|
||||
itr->second->GetPlayer() &&
|
||||
itr->second->GetPlayer()->IsInWorld() &&
|
||||
itr->second != self &&
|
||||
itr->second->GetSecurity() &&
|
||||
(team == 0 || itr->second->GetPlayer()->GetTeam() == team) )
|
||||
{
|
||||
itr->second->SendPacket(packet);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace MaNGOS
|
||||
{
|
||||
class WorldWorldTextBuilder
|
||||
|
||||
Reference in new issue
Block a user