summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-07-06 22:12:43 -0400
committerChuck Miller <shadowmil@gmail.com>2009-07-06 22:12:43 -0400
commit5b56b981f9957597f8fb9761c7cac77b88761c52 (patch)
tree628d82da7afb0f70a16658f37b258af5afa08c82 /src
parent31942b39ad86f2d52c74afa8c31894bf4cd70b29 (diff)
downloadmanaserv-5b56b981f9957597f8fb9761c7cac77b88761c52.tar.gz
manaserv-5b56b981f9957597f8fb9761c7cac77b88761c52.tar.bz2
manaserv-5b56b981f9957597f8fb9761c7cac77b88761c52.tar.xz
manaserv-5b56b981f9957597f8fb9761c7cac77b88761c52.zip
GPMSG_PLAYER_ATTRIBUTE_CHANGE should now be using a Word over a Byte
This is to allow for skill IDs >255
Diffstat (limited to 'src')
-rw-r--r--src/defines.h2
-rw-r--r--src/game-server/character.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/defines.h b/src/defines.h
index 69e0915b..f4d99630 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -125,7 +125,7 @@ enum {
PGMSG_MOVE_ITEM = 0x0114, // B slot1, B slot2, B amount
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_ATTRIBUTE_CHANGE = 0x0130, // { W attribute, W base value, W modified value }*
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
diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp
index 809ed5ec..9e68667c 100644
--- a/src/game-server/character.cpp
+++ b/src/game-server/character.cpp
@@ -294,7 +294,7 @@ void Character::sendStatus()
i_end = mModifiedAttributes.end(); i != i_end; ++i)
{
int attr = *i;
- attribMsg.writeByte(attr);
+ attribMsg.writeShort(attr);
attribMsg.writeShort(getAttribute(attr));
attribMsg.writeShort(getModifiedAttribute(attr));
}