From 4e3d23188e02d2c79f09460590d0f43a5f81a982 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 23 Jan 2021 15:54:25 +0100 Subject: Scripts/Commands: Improve ".debug objectcount" Include the number of SetActive objects in ".debug objectcount" command (cherry picked from commit d0231c5a8fdea9704be442cbd8840079caf47a6d) --- src/server/scripts/Commands/cs_debug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index 9039b1e3fbb..5fc4e46895e 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -1688,10 +1688,11 @@ public: static void HandleDebugObjectCountMap(ChatHandler* handler, Map* map) { - handler->PSendSysMessage("Map Id: %u Name: '%s' Instance Id: %u Creatures: " UI64FMTD " GameObjects: " UI64FMTD, + handler->PSendSysMessage("Map Id: %u Name: '%s' Instance Id: %u Creatures: " UI64FMTD " GameObjects: " UI64FMTD " SetActive Objects: " UI64FMTD, map->GetId(), map->GetMapName(), map->GetInstanceId(), uint64(map->GetObjectsStore().Size()), - uint64(map->GetObjectsStore().Size())); + uint64(map->GetObjectsStore().Size()), + uint64(map->GetActiveNonPlayersCount())); CreatureCountWorker worker; TypeContainerVisitor visitor(worker); -- cgit v1.2.3