diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/emap/itemdb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emap/itemdb.c b/src/emap/itemdb.c index d9ff7d8..e60783b 100644 --- a/src/emap/itemdb.c +++ b/src/emap/itemdb.c @@ -196,6 +196,14 @@ void eitemdb_readdb_additional_fields_pre(int *itemid, if (itemdb->lookup_const(it, "MinRange", &i32)) data->minRange = i32; + + // TMW2 fixes + if (item->type == IT_WEAPON || item->type == IT_ARMOR) { + if (item->view_sprite == 0) { + item->view_sprite=*itemid; + } + } + hookStop(); } |