summaryrefslogtreecommitdiff
path: root/src/game/AI/SmartScripts/SmartAI.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/game/AI/SmartScripts/SmartAI.cpp
parentf888e8c86b09d55587294921fbfeb58afb3d2282 (diff)
changed DISABLED_ cmake variable to ENABLED_ and implemented for all disabled logs
Diffstat (limited to 'src/game/AI/SmartScripts/SmartAI.cpp')
-rw-r--r--src/game/AI/SmartScripts/SmartAI.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/AI/SmartScripts/SmartAI.cpp b/src/game/AI/SmartScripts/SmartAI.cpp
index 40dea991e5..95b1a5208e 100644
--- a/src/game/AI/SmartScripts/SmartAI.cpp
+++ b/src/game/AI/SmartScripts/SmartAI.cpp
@@ -1096,7 +1096,9 @@ void SmartGameObjectAI::Reset()
// Called when a player opens a gossip dialog with the gameobject.
bool SmartGameObjectAI::GossipHello(Player* player, bool reportUse)
{
- ;//sLog->outDebug(LOG_FILTER_DATABASE_AI, "SmartGameObjectAI::GossipHello");
+#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
+ sLog->outDebug(LOG_FILTER_DATABASE_AI, "SmartGameObjectAI::GossipHello");
+#endif
GetScript()->ProcessEventsFor(SMART_EVENT_GOSSIP_HELLO, player, (uint32)reportUse, 0, false, NULL, go);
return false;
}
@@ -1177,7 +1179,9 @@ class SmartTrigger : public AreaTriggerScript
if (!player->IsAlive())
return false;
- ;//sLog->outDebug(LOG_FILTER_DATABASE_AI, "AreaTrigger %u is using SmartTrigger script", trigger->id);
+#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
+ sLog->outDebug(LOG_FILTER_DATABASE_AI, "AreaTrigger %u is using SmartTrigger script", trigger->id);
+#endif
SmartScript script;
script.OnInitialize(NULL, trigger);
script.ProcessEventsFor(SMART_EVENT_AREATRIGGER_ONTRIGGER, player, trigger->id);