summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-21 17:03:05 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-21 17:03:05 +0300
commitb55c6220a640cb2a9919261378966057357b53d4 (patch)
treedab73a4e6388a167910eef45a61949a0fcaa2bad /src/being/being.cpp
parent7fc54b6d5b3e858296747b0cdb0d1c4ddf4e35d8 (diff)
downloadmv-b55c6220a640cb2a9919261378966057357b53d4.tar.gz
mv-b55c6220a640cb2a9919261378966057357b53d4.tar.bz2
mv-b55c6220a640cb2a9919261378966057357b53d4.tar.xz
mv-b55c6220a640cb2a9919261378966057357b53d4.zip
Remove cards parameter from Being::setTempSprite.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 1023eb1d6..a61849ebc 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2915,8 +2915,7 @@ void Being::setWeaponId(const int id) restrict2
void Being::setTempSprite(const unsigned int slot,
const int id,
- std::string color,
- CardsList cards) restrict2
+ std::string color) restrict2
{
if (!charServerHandler || slot >= charServerHandler->maxSprite())
return;
@@ -2927,6 +2926,8 @@ void Being::setTempSprite(const unsigned int slot,
if (slot >= CAST_U32(mSlots.size()))
mSlots.resize(slot + 1, BeingSlot());
+ const CardsList &cards = mSlots[slot].cardsId;
+
// id = 0 means unequip
if (id == 0)
{
@@ -3877,16 +3878,14 @@ void Being::recalcSpritesOrder() restrict2
{
setTempSprite(remSprite,
repIt->second,
- remSlot.color,
- remSlot.cardsId);
+ remSlot.color);
}
else
{
setTempSprite(remSprite,
repIt->second,
ItemDB::get(repIt->second)
- .getDyeColorsString(mHairColor),
- remSlot.cardsId);
+ .getDyeColorsString(mHairColor));
}
updatedSprite[remSprite] = true;
}
@@ -3910,8 +3909,7 @@ void Being::recalcSpritesOrder() restrict2
{
setTempSprite(slot2,
repIt->second,
- beingSlot2.color,
- beingSlot2.cardsId);
+ beingSlot2.color);
}
else
{
@@ -3919,8 +3917,7 @@ void Being::recalcSpritesOrder() restrict2
repIt->second,
ItemDB::get(repIt->second)
.getDyeColorsString(
- mHairColor),
- beingSlot2.cardsId);
+ mHairColor));
}
updatedSprite[slot2] = true;
}
@@ -4065,8 +4062,7 @@ void Being::recalcSpritesOrder() restrict2
updatedSprite[slot] = true;
setTempSprite(slot,
id,
- beingSlot.color,
- beingSlot.cardsId);
+ beingSlot.color);
}
}
}
@@ -4081,8 +4077,7 @@ void Being::recalcSpritesOrder() restrict2
{
setTempSprite(static_cast<unsigned int>(slot),
id,
- beingSlot.color,
- beingSlot.cardsId);
+ beingSlot.color);
}
}
}