diff options
author | Ira Rice <irarice@gmail.com> | 2009-03-11 18:20:54 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-11 18:20:54 -0600 |
commit | 0d50333f996a4d5c4bb28032e52a3c57f31805b6 (patch) | |
tree | 9cf4242d8b2874871b9668162e9659619ca2c6fc /src/resources/itemdb.cpp | |
parent | c2ae6d9cea9fc3d861e73d4cf7eca5284519758e (diff) | |
download | mana-0d50333f996a4d5c4bb28032e52a3c57f31805b6.tar.gz mana-0d50333f996a4d5c4bb28032e52a3c57f31805b6.tar.bz2 mana-0d50333f996a4d5c4bb28032e52a3c57f31805b6.tar.xz mana-0d50333f996a4d5c4bb28032e52a3c57f31805b6.zip |
Only check for name and descriptions in items with positive ID's in the
ItemDB. This helps reduce the junk logging for the player and hair
sprites.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 2eff514c..2b94bd61 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -145,9 +145,12 @@ void ItemDB::load() if (param == error_value) \ logger->log("ItemDB: Missing " #param " attribute for item %i!",id) - CHECK_PARAM(name, ""); + if (id >= 0) + { + CHECK_PARAM(name, ""); + CHECK_PARAM(description, ""); + } CHECK_PARAM(image, ""); - CHECK_PARAM(description, ""); // CHECK_PARAM(effect, ""); // CHECK_PARAM(type, 0); // CHECK_PARAM(weight, 0); |