summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-21 13:53:25 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-21 13:58:49 +0300
commit48cff567cb37f3ce18ee32e75bb7570db72368e0 (patch)
treee40f3656b0b37f6ca51a1da27a7050552b7c86eb /src/actormanager.cpp
parent26891e5a71320228e49f0f42b8efdf5284e8e853 (diff)
downloadmanaverse-48cff567cb37f3ce18ee32e75bb7570db72368e0.tar.gz
manaverse-48cff567cb37f3ce18ee32e75bb7570db72368e0.tar.bz2
manaverse-48cff567cb37f3ce18ee32e75bb7570db72368e0.tar.xz
manaverse-48cff567cb37f3ce18ee32e75bb7570db72368e0.zip
Split Being::setSprite into Being::setSprite and Being::setSpriteCards.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index 1d4416482..6bae927e9 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -2041,8 +2041,7 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
dstBeing->setSprite(slot,
spriteId,
std::string(),
- color,
- zeroCards);
+ color);
}
const int hairSlot = charServerHandler->hairSprite();
const int hairStyle = -srcBeing->getSpriteID(hairSlot);
@@ -2052,16 +2051,14 @@ Being *ActorManager::cloneBeing(const Being *const srcBeing,
dstBeing->setSprite(hairSlot,
hairStyle * -1,
ItemDB::get(-hairStyle).getDyeColorsString(hairColor),
- ItemColor_one,
- zeroCards);
+ ItemColor_one);
}
else
{
dstBeing->setSprite(hairSlot,
0,
std::string(),
- ItemColor_one,
- zeroCards);
+ ItemColor_one);
}
dstBeing->setHairColor(hairColor);
return dstBeing;