mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
corrections
This commit is contained in:
@@ -482,6 +482,8 @@ void WorldSession::HandlePetitionSignOpcode(WorldPacket& recvData)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sScriptMgr->OnPlayerbotCheckPetitionAccount(_player, found);
|
||||||
|
|
||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
WorldPacket data(SMSG_PETITION_SIGN_RESULTS, (8 + 8 + 4));
|
WorldPacket data(SMSG_PETITION_SIGN_RESULTS, (8 + 8 + 4));
|
||||||
|
|||||||
@@ -1722,6 +1722,13 @@ void Map::SendObjectUpdates()
|
|||||||
WorldPacket packet; // here we allocate a std::vector with a size of 0x10000
|
WorldPacket packet; // here we allocate a std::vector with a size of 0x10000
|
||||||
for (UpdateDataMapType::iterator iter = update_players.begin(); iter != update_players.end(); ++iter)
|
for (UpdateDataMapType::iterator iter = update_players.begin(); iter != update_players.end(); ++iter)
|
||||||
{
|
{
|
||||||
|
if (!sScriptMgr->OnPlayerbotCheckUpdatesToSend(iter->first))
|
||||||
|
{
|
||||||
|
iter->second.Clear();
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
iter->second.BuildPacket(packet);
|
iter->second.BuildPacket(packet);
|
||||||
iter->first->SendDirectMessage(&packet);
|
iter->first->SendDirectMessage(&packet);
|
||||||
packet.clear(); // clean the string
|
packet.clear(); // clean the string
|
||||||
|
|||||||
Reference in New Issue
Block a user