summaryrefslogtreecommitdiff
path: root/src/net/charserverhandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-07-11 12:58:11 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-07-11 12:58:11 +0000
commit84aafd27dad40f4033561052164c21fe68cf78ad (patch)
tree77fb9224634f95b1ede62c6605976feb4ee9455b /src/net/charserverhandler.cpp
parent8dd7eef0402cc6e22642f045e3cfde7f5b011d5b (diff)
downloadmana-client-84aafd27dad40f4033561052164c21fe68cf78ad.tar.gz
mana-client-84aafd27dad40f4033561052164c21fe68cf78ad.tar.bz2
mana-client-84aafd27dad40f4033561052164c21fe68cf78ad.tar.xz
mana-client-84aafd27dad40f4033561052164c21fe68cf78ad.zip
Weapon sprites are now (almost) threated like other equipment sprites through the equipment sprite database. (use -u to ignore updates)
Diffstat (limited to 'src/net/charserverhandler.cpp')
-rw-r--r--src/net/charserverhandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp
index a54a17de..6d4149ec 100644
--- a/src/net/charserverhandler.cpp
+++ b/src/net/charserverhandler.cpp
@@ -206,7 +206,7 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot)
Uint16 weapon = msg.readInt16();
if (weapon == 11)
weapon = 2;
- tempPlayer->setWeapon(weapon);
+ tempPlayer->setVisibleEquipment(Being::WEAPON_SPRITE, weapon * 10000);
tempPlayer->mLevel = msg.readInt16();
msg.readInt16(); // skill point
tempPlayer->setVisibleEquipment(Being::BOTTOMCLOTHES_SPRITE, msg.readInt16()); // head bottom