summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-05-19 15:58:58 +0100
committerDavid Athay <ko2fan@gmail.com>2009-05-19 15:58:58 +0100
commite975b11e1885457295a51778d8337b097549228d (patch)
tree09f340afb43894c87f38a0b198392305f67d6ee0 /src/resources
parent3dd404ee8a02958089bf2c6901fb877d2fae760e (diff)
downloadmana-e975b11e1885457295a51778d8337b097549228d.tar.gz
mana-e975b11e1885457295a51778d8337b097549228d.tar.bz2
mana-e975b11e1885457295a51778d8337b097549228d.tar.xz
mana-e975b11e1885457295a51778d8337b097549228d.zip
Fixed targeting and warn on attack-range not being found in itemdb.
Tried to make the client continue attacking (it does not need to send attack packets, but just continue playing attack animation and sounds). Now logs a warning when a weapon is found without an attack-range (I keep finding weapons with an attack-range of 0 which makes it hard to target monsters).
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/itemdb.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 99907ca7..fa31c556 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -210,6 +210,10 @@ void ItemDB::load()
}
}
+ if (weaponType > 0)
+ if (attackRange == 0)
+ logger->log("ItemDB: Missing attack range from weapon %i!", id);
+
#define CHECK_PARAM(param, error_value) \
if (param == error_value) \
logger->log("ItemDB: Missing " #param " attribute for item %i!",id)