diff options
Diffstat (limited to 'src/statuseffect.cpp')
-rw-r--r-- | src/statuseffect.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/statuseffect.cpp b/src/statuseffect.cpp index eed1a307b..c3aed4ea0 100644 --- a/src/statuseffect.cpp +++ b/src/statuseffect.cpp @@ -30,6 +30,8 @@ #include "particle/particle.h" +#include "listeners/debugmessagelistener.h" + #include "resources/beingcommon.h" #include "resources/spriteaction.h" @@ -124,7 +126,12 @@ StatusEffect *StatusEffect::getStatusEffect(const int index, const std::map<int, StatusEffect *>::iterator it = effects.find(index); if (it != effects.end()) return (*it).second; - logger->log("Missing status effect: %d", index); + if (config.getBoolValue("unimplimentedLog")) + { + const std::string str = strprintf("Missing status effect: %d", index); + logger->log(str); + DebugMessageListener::distributeEvent(str); + } return nullptr; } |