summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-09-03 05:42:43 +0200
committerHaru <haru@dotalux.com>2013-09-03 19:46:44 +0200
commitdf0a324108cd8b6ee7ac984700efed80044ed7c3 (patch)
treedf98a2e51a2a86df68b5dc9c1fffef253a150187 /src/common/mmo.h
parent51b7f5c6f6af53c3fc6a71ede9aea6b760a91491 (diff)
downloadhercules-df0a324108cd8b6ee7ac984700efed80044ed7c3.tar.gz
hercules-df0a324108cd8b6ee7ac984700efed80044ed7c3.tar.bz2
hercules-df0a324108cd8b6ee7ac984700efed80044ed7c3.tar.xz
hercules-df0a324108cd8b6ee7ac984700efed80044ed7c3.zip
Fixed several packet errors with pre-renewal clients from 2006-2008
Thanks to Beret for reporting the issues, Ind for his great help with research, suggestions and the necessary tools to fix this. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/mmo.h')
-rw-r--r--src/common/mmo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index a297d94d9..17a01ff95 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -64,6 +64,7 @@
// Comment the following line to disable sc_data saving. [Skotlex]
#define ENABLE_SC_SAVING
+#if PACKETVER >= 20070227
// Comment the following like to disable server-side hot-key saving support. [Skotlex]
// Note that newer clients no longer save hotkeys in the registry!
#define HOTKEY_SAVING
@@ -74,10 +75,11 @@
#elif PACKETVER < 20090617
// (36 = 9 skills x 4 bars) (0x07d9,254)
#define MAX_HOTKEYS 36
-#else
+#else // >= 20090617
// (38 = 9 skills x 4 bars & 2 Quickslots)(0x07d9,268)
#define MAX_HOTKEYS 38
-#endif
+#endif // 20090603
+#endif // 20070227
#define MAX_INVENTORY 100
//Max number of characters per account. Note that changing this setting alone is not enough if the client is not hexed to support more characters as well.