summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-06-30 19:31:04 -0600
committerJared Adams <jaxad0127@gmail.com>2009-06-30 19:32:16 -0600
commitcc8faa31bfae9f7bbce453a4ae69ef3d6eacbb96 (patch)
treef789c2def45f27c0c2dd1fddf9f5dbb35711c74c /src/net
parent3d9af4e9cbb76221766eb3a7f859b60b4c09679a (diff)
downloadmana-cc8faa31bfae9f7bbce453a4ae69ef3d6eacbb96.tar.gz
mana-cc8faa31bfae9f7bbce453a4ae69ef3d6eacbb96.tar.bz2
mana-cc8faa31bfae9f7bbce453a4ae69ef3d6eacbb96.tar.xz
mana-cc8faa31bfae9f7bbce453a4ae69ef3d6eacbb96.zip
Use two bytes for skill ID
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tmwserv/playerhandler.cpp2
-rw-r--r--src/net/tmwserv/protocol.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwserv/playerhandler.cpp b/src/net/tmwserv/playerhandler.cpp
index b378817f..69a2bdb4 100644
--- a/src/net/tmwserv/playerhandler.cpp
+++ b/src/net/tmwserv/playerhandler.cpp
@@ -169,7 +169,7 @@ void PlayerHandler::handleMessage(MessageIn &msg)
logger->log("EXP Update");
while (msg.getUnreadLength())
{
- int skill = msg.readInt8();
+ int skill = msg.readInt16();
int current = msg.readInt32();
int next = msg.readInt32();
diff --git a/src/net/tmwserv/protocol.h b/src/net/tmwserv/protocol.h
index 6124263a..e9fc5b8a 100644
--- a/src/net/tmwserv/protocol.h
+++ b/src/net/tmwserv/protocol.h
@@ -84,7 +84,7 @@ enum {
GPMSG_INVENTORY = 0x0120, // { B slot, W item id [, B amount] }*
GPMSG_INVENTORY_FULL = 0x0121, // { B slot, W item id [, B amount] }*
GPMSG_PLAYER_ATTRIBUTE_CHANGE = 0x0130, // { B attribute, W base value, W modified value }*
- GPMSG_PLAYER_EXP_CHANGE = 0x0140, // { B skill, D exp got, D exp needed }*
+ GPMSG_PLAYER_EXP_CHANGE = 0x0140, // { W skill, D exp got, D exp needed }*
GPMSG_LEVELUP = 0x0150, // W new level
GPMSG_LEVEL_PROGRESS = 0x0151, // B percent completed to next levelup
PGMSG_RAISE_ATTRIBUTE = 0x0160, // B attribute