diff options
| author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-05 20:12:51 +0000 |
|---|---|---|
| committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-01-05 20:12:51 +0000 |
| commit | 593e65eef0d43f2ff61dc1b4f3160c0a16b5f015 (patch) | |
| tree | 8e0a1ca0c73778f0e4d71f4da4d5c47f272915b9 /src/skill.cpp | |
| parent | f96ca90ba90da3175be96ff7ed34efb78ea5dfed (diff) | |
| download | manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.gz manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.xz manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.zip | |
Simplified handling of verbosity levels. Optimized code by generating only needed messages.
Diffstat (limited to 'src/skill.cpp')
| -rw-r--r-- | src/skill.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/skill.cpp b/src/skill.cpp index 9d9c306..e059f54 100644 --- a/src/skill.cpp +++ b/src/skill.cpp @@ -61,9 +61,9 @@ bool Skill::useSkill() { #ifdef SCRIPT_SUPPORT //run skill script - LOG_ERROR("Skill: Skills not implemented.", 0); + LOG_ERROR("Skill: Skills not implemented."); #else - LOG_ERROR("Skill: Could not use skill; scripting disabled.", 0); + LOG_ERROR("Skill: Could not use skill; scripting disabled."); #endif return true; } @@ -77,8 +77,8 @@ bool Skill::deleteSkill(const std::string &ident, bool delTree) { //prevent deletion of self if (ident == id) { - LOG_ERROR("Skill: Attempt to delete self.", 0); - return false; + LOG_ERROR("Skill: Attempt to delete self."); + return false; } for (unsigned int i = 0; i < children.size(); i++) { |
