From 0d50333f996a4d5c4bb28032e52a3c57f31805b6 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Wed, 11 Mar 2009 18:20:54 -0600 Subject: 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 --- src/resources/itemdb.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/resources/itemdb.cpp') 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); -- cgit v1.2.3-70-g09d2