summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-04 01:45:10 +0000
committerprotimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-04 01:45:10 +0000
commitcc02d87c0722eecf309c9da8f81d823c4d98e56f (patch)
treeaa81294bd7eb513c766202bfc00f6cb97bc75121 /src
parent390570b8d701f3e2c01241dea059f87dc716b9a4 (diff)
downloadhercules-cc02d87c0722eecf309c9da8f81d823c4d98e56f.tar.gz
hercules-cc02d87c0722eecf309c9da8f81d823c4d98e56f.tar.bz2
hercules-cc02d87c0722eecf309c9da8f81d823c4d98e56f.tar.xz
hercules-cc02d87c0722eecf309c9da8f81d823c4d98e56f.zip
Re-add hotkey bar defines for pre-renewal.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15831 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/common/mmo.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 3b049fc6e..7268982d7 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -56,9 +56,16 @@
//Note that newer clients no longer save hotkeys in the registry!
#define HOTKEY_SAVING
-//The number is the max number of hotkeys to save
-// (38 = 9 skills x 4 bars & 2 Quickslots)(0x07d9,268)
-#define MAX_HOTKEYS 38
+#if PACKETVER < 20090603
+ // (27 = 9 skills x 3 bars) (0x02b9,191)
+ #define MAX_HOTKEYS 27
+#elif PACKETVER < 20090617
+ // (36 = 9 skills x 4 bars) (0x07d9,254)
+ #define MAX_HOTKEYS 36
+#else
+ // (38 = 9 skills x 4 bars & 2 Quickslots)(0x07d9,268)
+ #define MAX_HOTKEYS 38
+#endif
#define MAX_MAP_PER_SERVER 1500 // Increased to allow creation of Instance Maps
#define MAX_INVENTORY 100