diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-21 15:27:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-21 15:27:11 +0300 |
commit | fbadc806e050929f44b54fc2973a28d2fdfc516c (patch) | |
tree | b233a68db2a42025cc68934cd0f71ca21120c581 /src/actormanager.cpp | |
parent | 3d524b386e3dd6d89d481749cd0015bff247a703 (diff) | |
download | mv-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.gz mv-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.bz2 mv-fbadc806e050929f44b54fc2973a28d2fdfc516c.tar.xz mv-fbadc806e050929f44b54fc2973a28d2fdfc516c.zip |
In Being split setSprite into setSpriteColor and setSpriteColorId.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 6bae927e9..df87ca937 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -2038,9 +2038,8 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing, { const int spriteId = srcBeing->getSpriteID(slot); const ItemColor color = srcBeing->getSpriteColor(slot); - dstBeing->setSprite(slot, + dstBeing->setSpriteColorId(slot, spriteId, - std::string(), color); } const int hairSlot = charServerHandler->hairSprite(); @@ -2048,17 +2047,13 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing, const ItemColor hairColor = srcBeing->getHairColor(); if (hairStyle != 0) { - dstBeing->setSprite(hairSlot, + dstBeing->setSpriteColor(hairSlot, hairStyle * -1, - ItemDB::get(-hairStyle).getDyeColorsString(hairColor), - ItemColor_one); + ItemDB::get(-hairStyle).getDyeColorsString(hairColor)); } else { - dstBeing->setSprite(hairSlot, - 0, - std::string(), - ItemColor_one); + dstBeing->unSetSprite(hairSlot); } dstBeing->setHairColor(hairColor); return dstBeing; |