summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-07-03 21:05:19 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-07-03 21:05:19 +0000
commite3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939 (patch)
tree77afd116346f3e107c80c4126c8e44399ec24f11 /src/net
parent852626d562a6b40f37a25dc2784492ede80ee78b (diff)
downloadmana-e3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939.tar.gz
mana-e3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939.tar.bz2
mana-e3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939.tar.xz
mana-e3a2cd1e6f685c921bd73e9cb1f0f8fcf0b6a939.zip
Fixed visible equipment initialization and hack to see 2 kinds of visible equipments.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/charserverhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp
index 12813795..9857ddc0 100644
--- a/src/net/charserverhandler.cpp
+++ b/src/net/charserverhandler.cpp
@@ -191,10 +191,10 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn *msg, int &slot)
tempPlayer->setWeapon(weapon);
tempPlayer->mLevel = msg->readInt16();
msg->readInt16(); // skill point
- msg->readInt16(); // head bottom
+ tempPlayer->mVisibleEquipment[3] = msg->readInt16(); // head bottom
msg->readInt16(); // shield
- msg->readInt16(); // head option top
- msg->readInt16(); // head option mid
+ tempPlayer->mVisibleEquipment[4] = msg->readInt16(); // head option top
+ tempPlayer->mVisibleEquipment[5] = msg->readInt16(); // head option mid
tempPlayer->setHairColor(msg->readInt16());
msg->readInt16(); // unknown
tempPlayer->setName(msg->readString(24));