summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp45
-rw-r--r--src/net/eathena/charserverrecv.cpp3
2 files changed, 16 insertions, 32 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index dbf797e2b..418876b0d 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -50,36 +50,21 @@ void BeingHandler::undress(Being *const being) const
{
if (!being)
return;
- being->setSpriteId(SPRITE_WEAPON,
- 0);
- being->setSpriteId(SPRITE_HEAD_BOTTOM,
- 0);
- being->setSpriteId(SPRITE_HEAD_TOP,
- 0);
- being->setSpriteId(SPRITE_HEAD_MID,
- 0);
- being->setSpriteId(SPRITE_CLOTHES_COLOR,
- 0);
- being->setSpriteId(SPRITE_SHIELD,
- 0);
- being->setSpriteId(SPRITE_FLOOR,
- 0);
- being->setSpriteId(SPRITE_ROBE,
- 0);
- being->setSpriteId(SPRITE_EVOL2,
- 0);
- being->setSpriteId(SPRITE_EVOL3,
- 0);
- being->setSpriteId(SPRITE_EVOL4,
- 0);
- being->setSpriteId(SPRITE_EVOL5,
- 0);
- being->setSpriteId(SPRITE_EVOL6,
- 0);
- being->setSpriteId(SPRITE_HAIR,
- 0);
- being->setSpriteId(SPRITE_SHOES,
- 0);
+ being->unSetSprite(SPRITE_WEAPON);
+ being->unSetSprite(SPRITE_HEAD_BOTTOM);
+ being->unSetSprite(SPRITE_HEAD_TOP);
+ being->unSetSprite(SPRITE_HEAD_MID);
+ being->unSetSprite(SPRITE_CLOTHES_COLOR);
+ being->unSetSprite(SPRITE_SHIELD);
+ being->unSetSprite(SPRITE_FLOOR);
+ being->unSetSprite(SPRITE_ROBE);
+ being->unSetSprite(SPRITE_EVOL2);
+ being->unSetSprite(SPRITE_EVOL3);
+ being->unSetSprite(SPRITE_EVOL4);
+ being->unSetSprite(SPRITE_EVOL5);
+ being->unSetSprite(SPRITE_EVOL6);
+ being->unSetSprite(SPRITE_HAIR);
+ being->unSetSprite(SPRITE_SHOES);
}
void BeingHandler::requestRanks(const RankT rank) const
diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp
index 555a876be..3ddb6af95 100644
--- a/src/net/eathena/charserverrecv.cpp
+++ b/src/net/eathena/charserverrecv.cpp
@@ -147,8 +147,7 @@ void CharServerRecv::readPlayerData(Net::MessageIn &msg,
tempPlayer->setHairColor(color);
if (hairStyle == 0)
{
- tempPlayer->setSpriteId(SPRITE_HAIR_COLOR,
- 0);
+ tempPlayer->unSetSprite(SPRITE_HAIR_COLOR);
}
else
{