From 928fcf801f53d44d8b31b4285052a067340ab4ff Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 30 Aug 2007 16:46:21 +0000 Subject: Merged equipment database with items database and got rid of the unused item art attribute. Removed the now unnecessary multiplication of weapon IDs with 10000. Added a fallback item icon and used it for unknown items or when an item image fails to load. --- src/net/charserverhandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/net/charserverhandler.cpp') diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp index 9018b0af..a3f696c6 100644 --- a/src/net/charserverhandler.cpp +++ b/src/net/charserverhandler.cpp @@ -204,9 +204,7 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot) msg.readInt16(); // class tempPlayer->setHairStyle(msg.readInt16()); Uint16 weapon = msg.readInt16(); - if (weapon == 11) - weapon = 2; - tempPlayer->setVisibleEquipment(Being::WEAPON_SPRITE, weapon * 10000); + tempPlayer->setVisibleEquipment(Being::WEAPON_SPRITE, weapon); tempPlayer->mLevel = msg.readInt16(); msg.readInt16(); // skill point tempPlayer->setVisibleEquipment(Being::BOTTOMCLOTHES_SPRITE, msg.readInt16()); // head bottom -- cgit v1.2.3-70-g09d2