summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_misc.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-08-19 19:42:48 +0200
committerYehonal <yehonal.azeroth@gmail.com>2017-08-19 19:42:48 +0200
commitc1586e0d995de5dd278b0acfe410acf66f6c2c6d (patch)
tree5c66718c37379eda84669c1990c8d2f8fc0835d3 /src/scripts/Commands/cs_misc.cpp
parentf888e8c86b09d55587294921fbfeb58afb3d2282 (diff)
changed DISABLED_ cmake variable to ENABLED_ and implemented for all disabled logs
Diffstat (limited to 'src/scripts/Commands/cs_misc.cpp')
-rw-r--r--src/scripts/Commands/cs_misc.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/scripts/Commands/cs_misc.cpp b/src/scripts/Commands/cs_misc.cpp
index 6fadd18e76..715acec474 100644
--- a/src/scripts/Commands/cs_misc.cpp
+++ b/src/scripts/Commands/cs_misc.cpp
@@ -1510,7 +1510,9 @@ public:
if (!playerTarget)
playerTarget = player;
- ;//sLog->outDetail(handler->GetTrinityString(LANG_ADDITEM), itemId, count);
+#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
+ sLog->outDetail(handler->GetTrinityString(LANG_ADDITEM), itemId, count);
+#endif
ItemTemplate const* itemTemplate = sObjectMgr->GetItemTemplate(itemId);
if (!itemTemplate)
@@ -1597,7 +1599,9 @@ public:
if (!playerTarget)
playerTarget = player;
- ;//sLog->outDetail(handler->GetTrinityString(LANG_ADDITEMSET), itemSetId);
+#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
+ sLog->outDetail(handler->GetTrinityString(LANG_ADDITEMSET), itemSetId);
+#endif
bool found = false;
ItemTemplateContainer const* its = sObjectMgr->GetItemTemplateStore();