diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-06-30 21:28:37 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-06-30 21:28:37 -0400 |
commit | 6b794e76f8f046dca632299e443129c4f5ca3382 (patch) | |
tree | 5e3cd1cce0e978c345c217fc6bd85a6d05d0db8f /src | |
parent | 40db587365a1cf7d1dfc6ade221baec5715a908d (diff) | |
download | manaserv-6b794e76f8f046dca632299e443129c4f5ca3382.tar.gz manaserv-6b794e76f8f046dca632299e443129c4f5ca3382.tar.bz2 manaserv-6b794e76f8f046dca632299e443129c4f5ca3382.tar.xz manaserv-6b794e76f8f046dca632299e443129c4f5ca3382.zip |
Send a word over a byte for skill exp
Diffstat (limited to 'src')
-rw-r--r-- | src/defines.h | 2 | ||||
-rw-r--r-- | src/game-server/character.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/defines.h b/src/defines.h index b256df20..3ca66bfe 100644 --- a/src/defines.h +++ b/src/defines.h @@ -126,7 +126,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, W character points, W correction points GPMSG_LEVEL_PROGRESS = 0x0151, // B percent completed to next levelup PGMSG_RAISE_ATTRIBUTE = 0x0160, // B attribute diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index 7e0dc125..f2b746e3 100644 --- a/src/game-server/character.cpp +++ b/src/game-server/character.cpp @@ -298,7 +298,7 @@ void Character::sendStatus() i_end = mModifiedExperience.end(); i != i_end; ++i) { int skill = *i; - expMsg.writeByte(skill); + expMsg.writeShort(skill); expMsg.writeLong(getExpGot(skill)); expMsg.writeLong(getExpNeeded(skill)); } |