diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-21 19:50:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-12 21:18:06 +0300 |
commit | 30cf149e9db5b9e33d819b831f78c02eeb586d39 (patch) | |
tree | f50d9c5edfe5ceb866b72c7f39736e461aae9791 /src/map/itemdb.h | |
parent | b5c5728134ced5cd1f1609c3626832c42d425a05 (diff) | |
download | hercules-30cf149e9db5b9e33d819b831f78c02eeb586d39.tar.gz hercules-30cf149e9db5b9e33d819b831f78c02eeb586d39.tar.bz2 hercules-30cf149e9db5b9e33d819b831f78c02eeb586d39.tar.xz hercules-30cf149e9db5b9e33d819b831f78c02eeb586d39.zip |
Add support for 4 bytes item id fields in main clients.
From now all supported clients from some version can use item id up to 2 147 483 648.
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r-- | src/map/itemdb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 1d3b0c0d7..0c08efbeb 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 || PACKETVER_ZERO_NUM >= 20181114 +#if PACKETVER_MAIN_NUM >= 20181121 || 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 && PACKETVER_ZERO_NUM < 20181114 -#error "For clients before 20180704 RE and 2018114 zero, MAX_ITEM_ID must be smaller than 0x10000" +#if MAX_ITEM_ID > 0xFFFF && PACKETVER_MAIN_NUM < 20181121 && PACKETVER_RE_NUM < 20180704 && PACKETVER_ZERO_NUM < 20181114 +#error "For clients before 20181121 Main and 20180704 RE and 20181114 zero, MAX_ITEM_ID must be smaller than 0x10000" #endif enum item_itemid { |