summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 85ee3ce44..b851a5093 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -177,8 +177,8 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
tempPlayer->setGender(token.sex);
PlayerInfoBackend &data = character->data;
- data.mAttributes[EXP] = msg.readInt32();
- data.mAttributes[MONEY] = msg.readInt32();
+ data.mAttributes[PlayerInfo::EXP] = msg.readInt32();
+ data.mAttributes[PlayerInfo::MONEY] = msg.readInt32();
data.mStats[JOB].exp = msg.readInt32();
int temp = msg.readInt32();
@@ -195,10 +195,10 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
msg.readInt32(); // manner
msg.readInt16(); // character points left
- data.mAttributes[HP] = msg.readInt16();
- data.mAttributes[MAX_HP] = msg.readInt16();
- data.mAttributes[MP] = msg.readInt16();
- data.mAttributes[MAX_MP] = msg.readInt16();
+ data.mAttributes[PlayerInfo::HP] = msg.readInt16();
+ data.mAttributes[PlayerInfo::MAX_HP] = msg.readInt16();
+ data.mAttributes[PlayerInfo::MP] = msg.readInt16();
+ data.mAttributes[PlayerInfo::MAX_MP] = msg.readInt16();
msg.readInt16(); // speed
tempPlayer->setSubtype(msg.readInt16()); // class (used for race)
@@ -206,7 +206,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
uint16_t weapon = msg.readInt16(); // server not used it. may be need use?
tempPlayer->setSprite(SPRITE_WEAPON, weapon, "", 1, true);
- data.mAttributes[LEVEL] = msg.readInt16();
+ data.mAttributes[PlayerInfo::LEVEL] = msg.readInt16();
msg.readInt16(); // skill point
int bottomClothes = msg.readInt16();