summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-12 21:39:14 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-12 21:39:14 +0300
commit4c16730ba93b42f643ef075f7494eaed6d5acdf4 (patch)
tree01c3e28becf65f313c0717573367422b8ab0ccb0 /src
parent15528534932fc1a7ce28323f75963a1060dd1a7f (diff)
downloadplus-4c16730ba93b42f643ef075f7494eaed6d5acdf4.tar.gz
plus-4c16730ba93b42f643ef075f7494eaed6d5acdf4.tar.bz2
plus-4c16730ba93b42f643ef075f7494eaed6d5acdf4.tar.xz
plus-4c16730ba93b42f643ef075f7494eaed6d5acdf4.zip
Remove old evol color implimentation from readPlayerData.
Diffstat (limited to 'src')
-rw-r--r--src/net/tmwa/charserverhandler.cpp44
1 files changed, 10 insertions, 34 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index e1e0464a0..9ab0b8cb0 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -198,40 +198,16 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
character->data.mStats[Attributes::DEX].base = msg.readUInt8("dex");
character->data.mStats[Attributes::LUK].base = msg.readUInt8("luk");
- if (withColors)
- {
- tempPlayer->setSprite(SPRITE_HAIR, shoes, "",
- msg.readUInt8("shoes color"));
- tempPlayer->setSprite(SPRITE_SHOES, gloves, "",
- msg.readUInt8("gloves color"));
- tempPlayer->setSprite(SPRITE_SHIELD, cape, "",
- msg.readUInt8("cape color"));
- tempPlayer->setSprite(SPRITE_HEAD_TOP, misc1, "",
- msg.readUInt8("misc1 color"));
- tempPlayer->setSprite(SPRITE_WEAPON, bottomClothes,
- "", msg.readUInt8("bottom clothes color"));
- tempPlayer->setSprite(SPRITE_FLOOR, shield, "",
- msg.readUInt8("shield color"));
- tempPlayer->setSprite(SPRITE_CLOTHES_COLOR, hat, "",
- msg.readUInt8("head option top color"));
- tempPlayer->setSprite(SPRITE_HEAD_BOTTOM, topClothes, "",
- msg.readUInt8("top clothes color"));
- tempPlayer->setSprite(SPRITE_HEAD_MID, misc2, "",
- msg.readUInt8("misc2 color"));
- msg.skip(5, "unused");
- }
- else
- {
- tempPlayer->setSprite(SPRITE_HAIR, shoes);
- tempPlayer->setSprite(SPRITE_SHOES, gloves);
- tempPlayer->setSprite(SPRITE_SHIELD, cape);
- tempPlayer->setSprite(SPRITE_HEAD_TOP, misc1);
- tempPlayer->setSprite(SPRITE_WEAPON, bottomClothes);
- tempPlayer->setSprite(SPRITE_FLOOR, shield);
- tempPlayer->setSprite(SPRITE_CLOTHES_COLOR, hat); // head option top
- tempPlayer->setSprite(SPRITE_HEAD_BOTTOM, topClothes);
- tempPlayer->setSprite(SPRITE_HEAD_MID, misc2);
- }
+ tempPlayer->setSprite(SPRITE_HAIR, shoes);
+ tempPlayer->setSprite(SPRITE_SHOES, gloves);
+ tempPlayer->setSprite(SPRITE_SHIELD, cape);
+ tempPlayer->setSprite(SPRITE_HEAD_TOP, misc1);
+ tempPlayer->setSprite(SPRITE_WEAPON, bottomClothes);
+ tempPlayer->setSprite(SPRITE_FLOOR, shield);
+ tempPlayer->setSprite(SPRITE_CLOTHES_COLOR, hat); // head option top
+ tempPlayer->setSprite(SPRITE_HEAD_BOTTOM, topClothes);
+ tempPlayer->setSprite(SPRITE_HEAD_MID, misc2);
+
character->slot = msg.readUInt8("slot");
msg.readUInt8("unused");
}