From 6b794e76f8f046dca632299e443129c4f5ca3382 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Tue, 30 Jun 2009 21:28:37 -0400 Subject: Send a word over a byte for skill exp --- src/defines.h | 2 +- src/game-server/character.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)); } -- cgit v1.2.3-70-g09d2