We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcc24b9 + 685e702 commit 195c0efCopy full SHA for 195c0ef
1 file changed
src/game/WorldHandlers/Map.cpp
@@ -2174,6 +2174,11 @@ void Map::SendObjectUpdates()
2174
WorldPacket packet; // here we allocate a std::vector with a size of 0x10000
2175
for (UpdateDataMapType::iterator iter = update_players.begin(); iter != update_players.end(); ++iter)
2176
{
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
2182
iter->second.BuildPacket(&packet);
2183
iter->first->GetSession()->SendPacket(&packet);
2184
packet.clear(); // clean the string
0 commit comments