summaryrefslogtreecommitdiff
path: root/src/net/charserverhandler.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-03-09 05:16:27 +0000
commite5f795ad9952b8bba6993ee3e324b22a0f104816 (patch)
tree1602ac0f74865135eae5acf935b0a285a8e918c2 /src/net/charserverhandler.cpp
parent7593d6c71e2331c3e43c732db60ad03ee4d5385d (diff)
downloadmana-client-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.gz
mana-client-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.bz2
mana-client-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.xz
mana-client-e5f795ad9952b8bba6993ee3e324b22a0f104816.zip
Made all class members named like mClassMember.
Diffstat (limited to 'src/net/charserverhandler.cpp')
-rw-r--r--src/net/charserverhandler.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp
index 015c9d94..55bfa0c6 100644
--- a/src/net/charserverhandler.cpp
+++ b/src/net/charserverhandler.cpp
@@ -165,22 +165,22 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn *msg, int &slot)
LocalPlayer *tempPlayer = new LocalPlayer(mLoginData->account_ID, 0, NULL);
tempPlayer->mCharId = msg->readInt32();
- tempPlayer->totalWeight = 0;
- tempPlayer->maxWeight = 0;
- tempPlayer->lastAttackTime = 0;
- tempPlayer->xp = msg->readInt32();
- tempPlayer->gp = msg->readInt32();
- tempPlayer->jobXp = msg->readInt32();
- tempPlayer->jobLvl = msg->readInt32();
+ tempPlayer->mTotalWeight = 0;
+ tempPlayer->mMaxWeight = 0;
+ tempPlayer->mLastAttackTime = 0;
+ tempPlayer->mXp = msg->readInt32();
+ tempPlayer->mGp = msg->readInt32();
+ tempPlayer->mJobXp = msg->readInt32();
+ tempPlayer->mJobLevel = msg->readInt32();
msg->skip(8); // unknown
msg->readInt32(); // option
msg->readInt32(); // karma
msg->readInt32(); // manner
msg->skip(2); // unknown
- tempPlayer->hp = msg->readInt16();
- tempPlayer->maxHp = msg->readInt16();
- tempPlayer->mp = msg->readInt16();
- tempPlayer->maxMp = msg->readInt16();
+ tempPlayer->mHp = msg->readInt16();
+ tempPlayer->mMaxHp = msg->readInt16();
+ tempPlayer->mMp = msg->readInt16();
+ tempPlayer->mMaxMp = msg->readInt16();
msg->readInt16(); // speed
msg->readInt16(); // class
tempPlayer->setHairStyle(msg->readInt16());
@@ -188,7 +188,7 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn *msg, int &slot)
if (weapon == 11)
weapon = 2;
tempPlayer->setWeapon(weapon);
- tempPlayer->lvl = msg->readInt16();
+ tempPlayer->mLevel = msg->readInt16();
msg->readInt16(); // skill point
msg->readInt16(); // head bottom
msg->readInt16(); // shield
@@ -198,7 +198,7 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn *msg, int &slot)
msg->readInt16(); // unknown
tempPlayer->setName(msg->readString(24));
for (int i = 0; i < 6; i++) {
- tempPlayer->ATTR[i] = msg->readInt8();
+ tempPlayer->mAttr[i] = msg->readInt8();
}
slot = msg->readInt8(); // character slot
msg->readInt8(); // unknown