summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_modify.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_modify.cpp
parentf888e8c86b09d55587294921fbfeb58afb3d2282 (diff)
changed DISABLED_ cmake variable to ENABLED_ and implemented for all disabled logs
Diffstat (limited to 'src/scripts/Commands/cs_modify.cpp')
-rw-r--r--src/scripts/Commands/cs_modify.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/scripts/Commands/cs_modify.cpp b/src/scripts/Commands/cs_modify.cpp
index d05078869d..ee4d499c48 100644
--- a/src/scripts/Commands/cs_modify.cpp
+++ b/src/scripts/Commands/cs_modify.cpp
@@ -190,7 +190,9 @@ public:
target->SetMaxPower(POWER_ENERGY, energym);
target->SetPower(POWER_ENERGY, energy);
- ;//sLog->outDetail(handler->GetTrinityString(LANG_CURRENT_ENERGY), target->GetMaxPower(POWER_ENERGY));
+#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
+ sLog->outDetail(handler->GetTrinityString(LANG_CURRENT_ENERGY), target->GetMaxPower(POWER_ENERGY));
+#endif
return true;
}
@@ -1016,7 +1018,9 @@ public:
{
int32 newmoney = int32(targetMoney) + moneyToAdd;
- ;//sLog->outDebug(LOG_FILTER_GENERAL, handler->GetTrinityString(LANG_CURRENT_MONEY), targetMoney, moneyToAdd, newmoney);
+#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
+ sLog->outDebug(LOG_FILTER_GENERAL, handler->GetTrinityString(LANG_CURRENT_MONEY), targetMoney, moneyToAdd, newmoney);
+#endif
if (newmoney <= 0)
{
handler->PSendSysMessage(LANG_YOU_TAKE_ALL_MONEY, handler->GetNameLink(target).c_str());
@@ -1051,7 +1055,9 @@ public:
target->ModifyMoney(moneyToAdd);
}
- ;//sLog->outDebug(LOG_FILTER_GENERAL, handler->GetTrinityString(LANG_NEW_MONEY), targetMoney, moneyToAdd, target->GetMoney());
+#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
+ sLog->outDebug(LOG_FILTER_GENERAL, handler->GetTrinityString(LANG_NEW_MONEY), targetMoney, moneyToAdd, target->GetMoney());
+#endif
return true;
}