diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2017-08-19 19:42:48 +0200 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2017-08-19 19:42:48 +0200 |
commit | c1586e0d995de5dd278b0acfe410acf66f6c2c6d (patch) | |
tree | 5c66718c37379eda84669c1990c8d2f8fc0835d3 /src/scripts/Commands/cs_modify.cpp | |
parent | f888e8c86b09d55587294921fbfeb58afb3d2282 (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.cpp | 12 |
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; } |