summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-15 16:50:46 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-27 23:10:23 +0300
commit6bf44bf62f2c2a8bbe74b332dba6f583452cf10b (patch)
tree21e479fb9a490d1a5f2a2349ecf7e66731f6f311 /src/map/itemdb.h
parent602ea2bc985e317d483aedc89f80e052befec57a (diff)
downloadhercules-6bf44bf62f2c2a8bbe74b332dba6f583452cf10b.tar.gz
hercules-6bf44bf62f2c2a8bbe74b332dba6f583452cf10b.tar.bz2
hercules-6bf44bf62f2c2a8bbe74b332dba6f583452cf10b.tar.xz
hercules-6bf44bf62f2c2a8bbe74b332dba6f583452cf10b.zip
Add support for int32 item id fields in zero client 20181114.
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index d92940445..1d3b0c0d7 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -38,7 +38,7 @@ struct hplugin_data_store;
#endif
#ifndef MAX_ITEM_ID
-#if PACKETVER_RE_NUM >= 20180704
+#if PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
#define MAX_ITEM_ID 0x20000
#else
#define MAX_ITEM_ID 0xFFFF
@@ -72,8 +72,8 @@ struct hplugin_data_store;
#if MAX_ITEM_ID < MAX_ITEMDB
#error "MAX_ITEM_ID must be bigger or same with MAX_ITEMDB"
#endif
-#if MAX_ITEM_ID > 0xFFFF && PACKETVER_RE_NUM < 20180704
-#error "For clients before 20180704 RE, MAX_ITEM_ID must be smaller than 0x10000"
+#if MAX_ITEM_ID > 0xFFFF && PACKETVER_RE_NUM < 20180704 && PACKETVER_ZERO_NUM < 20181114
+#error "For clients before 20180704 RE and 2018114 zero, MAX_ITEM_ID must be smaller than 0x10000"
#endif
enum item_itemid {