diff options
| author | jackpoz <giacomopoz@gmail.com> | 2021-01-23 15:54:25 +0100 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2021-01-23 15:54:25 +0100 |
| commit | d0231c5a8fdea9704be442cbd8840079caf47a6d (patch) | |
| tree | b570050d5db1544536670324ad78134ee7b24c3d /src/server/scripts/Commands | |
| parent | 5d17697687454a4c46bf85fdf12a06b9bf84e4ec (diff) | |
Scripts/Commands: Improve ".debug objectcount"
Include the number of SetActive objects in ".debug objectcount" command
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index c15a437683e..4d25885d910 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -1774,10 +1774,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<Creature>()), - uint64(map->GetObjectsStore().Size<GameObject>())); + uint64(map->GetObjectsStore().Size<GameObject>()), + uint64(map->GetActiveNonPlayersCount())); CreatureCountWorker worker; TypeContainerVisitor<CreatureCountWorker, MapStoredObjectTypesContainer> visitor(worker); |
