Skip to content

Commit 195c0ef

Browse files
authored
Merge 685e702 into fcc24b9
2 parents fcc24b9 + 685e702 commit 195c0ef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/game/WorldHandlers/Map.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,6 +2174,11 @@ void Map::SendObjectUpdates()
21742174
WorldPacket packet; // here we allocate a std::vector with a size of 0x10000
21752175
for (UpdateDataMapType::iterator iter = update_players.begin(); iter != update_players.end(); ++iter)
21762176
{
2177+
#ifdef ENABLE_PLAYERBOTS
2178+
// Don't waste CPU building packets for bots - they have no network client
2179+
if (iter->first->GetPlayerbotAI())
2180+
continue;
2181+
#endif
21772182
iter->second.BuildPacket(&packet);
21782183
iter->first->GetSession()->SendPacket(&packet);
21792184
packet.clear(); // clean the string

0 commit comments

Comments
 (0)