diff options
author | David Athay <ko2fan@gmail.com> | 2009-05-19 15:58:58 +0100 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-05-19 15:58:58 +0100 |
commit | e975b11e1885457295a51778d8337b097549228d (patch) | |
tree | 09f340afb43894c87f38a0b198392305f67d6ee0 /src/resources/itemdb.cpp | |
parent | 3dd404ee8a02958089bf2c6901fb877d2fae760e (diff) | |
download | mana-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/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 4 |
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) |