summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-16 14:52:20 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-16 14:55:28 +0300
commitcc8f48938d98f71ac738b4f08db81242eab75407 (patch)
treeacf373a335be1b80b9e847ddd7da8ec7b32c4166 /src/resources
parent831d396c2911badff986f6836679039de3e1b6f2 (diff)
downloadmanaplus-cc8f48938d98f71ac738b4f08db81242eab75407.tar.gz
manaplus-cc8f48938d98f71ac738b4f08db81242eab75407.tar.bz2
manaplus-cc8f48938d98f71ac738b4f08db81242eab75407.tar.xz
manaplus-cc8f48938d98f71ac738b4f08db81242eab75407.zip
improve monsterdb class.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/monsterdb.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp
index 793fd4d0d..2fe6596b0 100644
--- a/src/resources/monsterdb.cpp
+++ b/src/resources/monsterdb.cpp
@@ -55,7 +55,7 @@ void MonsterDB::load()
if (!rootNode || !xmlNameEqual(rootNode, "monsters"))
{
- logger->log("Monster Database: Error while loading monster.xml!");
+ logger->log1("Monster Database: Error while loading monster.xml!");
mLoaded = true;
return;
}
@@ -145,7 +145,8 @@ void MonsterDB::load()
if (!spriteNode->xmlChildrenNode)
continue;
- std::string event = XML::getProperty(spriteNode, "event", "");
+ const std::string event = XML::getProperty(
+ spriteNode, "event", "");
const char *filename;
filename = reinterpret_cast<const char*>(
spriteNode->xmlChildrenNode->content);
@@ -246,7 +247,7 @@ BeingInfo *MonsterDB::get(const int id)
if (i == mMonsterInfos.end())
{
- i = mMonsterInfos.find(id + /*1002*/ OLD_TMWATHENA_OFFSET);
+ i = mMonsterInfos.find(id + OLD_TMWATHENA_OFFSET);
if (i == mMonsterInfos.end())
{
logger->log("MonsterDB: Warning, unknown monster ID %d requested",