summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-08 23:40:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-08 23:59:11 +0300
commitde997e62656c4a60e069b4fedf5b1b96882c7931 (patch)
treec8bba8498bc8a9f86448bbb69de2cba902c747ef /src/actions/actions.cpp
parent6f0554d8c81752ec8f0e3b9822bdeb590cbdfafb (diff)
downloadmv-de997e62656c4a60e069b4fedf5b1b96882c7931.tar.gz
mv-de997e62656c4a60e069b4fedf5b1b96882c7931.tar.bz2
mv-de997e62656c4a60e069b4fedf5b1b96882c7931.tar.xz
mv-de997e62656c4a60e069b4fedf5b1b96882c7931.zip
Add chat command /testinfo for output some debug parameters to log.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 4655c9833..288c866f0 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1640,4 +1640,15 @@ impHandler0(clearDrop)
return true;
}
+impHandler0(testInfo)
+{
+ if (actorManager)
+ {
+ logger->log("actors count: %d", static_cast<int>(
+ actorManager->size()));
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions