summaryrefslogtreecommitdiff
path: root/src/scripts/Commands/cs_modify.cpp
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-08-20 04:48:07 +0200
committerYehonal <yehonal.azeroth@gmail.com>2017-08-20 04:48:07 +0200
commit0dd68dfbee97eb7ed2c9bd4109ba3f2aed697860 (patch)
tree072f2d6f3bf2f7a64d5533e670a978ef03276859 /src/scripts/Commands/cs_modify.cpp
parente471c1bb6a241cfffe9c7ae61aa502eba9a046a0 (diff)
Another huge compilation fix
please delete cache and re-run cmake
Diffstat (limited to 'src/scripts/Commands/cs_modify.cpp')
-rw-r--r--src/scripts/Commands/cs_modify.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scripts/Commands/cs_modify.cpp b/src/scripts/Commands/cs_modify.cpp
index ee4d499c48..f1cdea9832 100644
--- a/src/scripts/Commands/cs_modify.cpp
+++ b/src/scripts/Commands/cs_modify.cpp
@@ -190,7 +190,7 @@ public:
target->SetMaxPower(POWER_ENERGY, energym);
target->SetPower(POWER_ENERGY, energy);
-#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
+#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
sLog->outDetail(handler->GetTrinityString(LANG_CURRENT_ENERGY), target->GetMaxPower(POWER_ENERGY));
#endif
@@ -1018,8 +1018,8 @@ public:
{
int32 newmoney = int32(targetMoney) + moneyToAdd;
-#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
- sLog->outDebug(LOG_FILTER_GENERAL, handler->GetTrinityString(LANG_CURRENT_MONEY), targetMoney, moneyToAdd, newmoney);
+#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
+ sLog->outDebug(LOG_FILTER_CHATSYS, handler->GetTrinityString(LANG_CURRENT_MONEY), targetMoney, moneyToAdd, newmoney);
#endif
if (newmoney <= 0)
{
@@ -1055,8 +1055,8 @@ public:
target->ModifyMoney(moneyToAdd);
}
-#ifdef ENABLE_EXTRAS && ENABLE_EXTRA_LOGS
- sLog->outDebug(LOG_FILTER_GENERAL, handler->GetTrinityString(LANG_NEW_MONEY), targetMoney, moneyToAdd, target->GetMoney());
+#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
+ sLog->outDebug(LOG_FILTER_CHATSYS, handler->GetTrinityString(LANG_NEW_MONEY), targetMoney, moneyToAdd, target->GetMoney());
#endif
return true;