summaryrefslogtreecommitdiff
path: root/src/resources/db/itemdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-02 21:09:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-02 21:09:14 +0300
commit670264d93a362a3b987c6da62511ac49cd07b048 (patch)
tree8e7470b6f419965a4fe4464fe06dd9c117edce5a /src/resources/db/itemdb.cpp
parent6e577446c8b561a4ce8fd2d74f43c36210e8a571 (diff)
downloadmanaverse-670264d93a362a3b987c6da62511ac49cd07b048.tar.gz
manaverse-670264d93a362a3b987c6da62511ac49cd07b048.tar.bz2
manaverse-670264d93a362a3b987c6da62511ac49cd07b048.tar.xz
manaverse-670264d93a362a3b987c6da62511ac49cd07b048.zip
Show asserts for most errors in resource dbs.
Diffstat (limited to 'src/resources/db/itemdb.cpp')
-rw-r--r--src/resources/db/itemdb.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 726478523..0fda7e736 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -282,7 +282,7 @@ void ItemDB::loadXmlFile(const std::string &fileName,
if (id == 0)
{
- logger->log("ItemDB: Invalid or missing item ID in %s!",
+ reportAlways("ItemDB: Invalid or missing item ID in %s!",
fileName.c_str());
continue;
}
@@ -372,8 +372,9 @@ void ItemDB::loadXmlFile(const std::string &fileName,
}
else
{
- logger->log("Inherit item %d from not existing item %d",
- id, inherit);
+ reportAlways("Inherit item %d from not existing item %d",
+ id,
+ inherit);
}
}
@@ -610,7 +611,7 @@ void ItemDB::loadXmlFile(const std::string &fileName,
{
if (attackRange == 0)
{
- logger->log("ItemDB: Missing attack range from weapon %i!",
+ reportAlways("ItemDB: Missing attack range from weapon %i!",
id);
}
}
@@ -695,8 +696,8 @@ const ItemInfo &ItemDB::get(const std::string &name)
{
if (!name.empty())
{
- logger->log("ItemDB: Warning, unknown item name \"%s\"",
- name.c_str());
+ reportAlways("ItemDB: Warning, unknown item name \"%s\"",
+ name.c_str());
}
return *mUnknown;
}
@@ -869,7 +870,7 @@ static void loadSoundRef(ItemInfo *const itemInfo, const XmlNodePtr node)
}
else
{
- logger->log("ItemDB: Ignoring unknown sound event '%s'",
+ reportAlways("ItemDB: Ignoring unknown sound event '%s'",
event.c_str());
}
}