From 8067031cfe41e43b911e7e0af28c88ae4edddcbf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Dec 2017 00:00:03 +0300 Subject: Remove default parameter from Being::updateSprite. --- src/net/eathena/beingrecv.cpp | 48 ++++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 12 deletions(-) (limited to 'src/net/eathena/beingrecv.cpp') diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp index 2e3080989..ff67669d4 100644 --- a/src/net/eathena/beingrecv.cpp +++ b/src/net/eathena/beingrecv.cpp @@ -117,12 +117,24 @@ static void setBasicFields(Being *restrict const dstBeing, } if (updateSlots) { - dstBeing->updateSprite(SPRITE_WEAPON, headBottom); - dstBeing->updateSprite(SPRITE_HEAD_BOTTOM, headMid); - dstBeing->updateSprite(SPRITE_CLOTHES_COLOR, headTop); - dstBeing->updateSprite(SPRITE_HAIR, shoes); - dstBeing->updateSprite(SPRITE_SHOES, gloves); - dstBeing->updateSprite(SPRITE_BODY, weapon); + dstBeing->updateSprite(SPRITE_WEAPON, + headBottom, + std::string()); + dstBeing->updateSprite(SPRITE_HEAD_BOTTOM, + headMid, + std::string()); + dstBeing->updateSprite(SPRITE_CLOTHES_COLOR, + headTop, + std::string()); + dstBeing->updateSprite(SPRITE_HAIR, + shoes, + std::string()); + dstBeing->updateSprite(SPRITE_SHOES, + gloves, + std::string()); + dstBeing->updateSprite(SPRITE_BODY, + weapon, + std::string()); dstBeing->setWeaponId(weapon); } break; @@ -137,12 +149,24 @@ static void setBasicFields(Being *restrict const dstBeing, dstBeing->setHairStyle(SPRITE_HAIR_COLOR, -hairStyle); // for npc not checking updateSlots flag, // probably because npc missing visible packet if moving - dstBeing->updateSprite(SPRITE_WEAPON, headBottom); - dstBeing->updateSprite(SPRITE_HEAD_BOTTOM, headMid); - dstBeing->updateSprite(SPRITE_CLOTHES_COLOR, headTop); - dstBeing->updateSprite(SPRITE_HAIR, shoes); - dstBeing->updateSprite(SPRITE_SHOES, gloves); - dstBeing->updateSprite(SPRITE_BODY, weapon); + dstBeing->updateSprite(SPRITE_WEAPON, + headBottom, + std::string()); + dstBeing->updateSprite(SPRITE_HEAD_BOTTOM, + headMid, + std::string()); + dstBeing->updateSprite(SPRITE_CLOTHES_COLOR, + headTop, + std::string()); + dstBeing->updateSprite(SPRITE_HAIR, + shoes, + std::string()); + dstBeing->updateSprite(SPRITE_SHOES, + gloves, + std::string()); + dstBeing->updateSprite(SPRITE_BODY, + weapon, + std::string()); dstBeing->setWeaponId(weapon); } break; -- cgit v1.2.3-70-g09d2