summaryrefslogtreecommitdiff
path: root/src
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
parent7fc54b6d5b3e858296747b0cdb0d1c4ddf4e35d8 (diff)
downloadmanaverse-b55c6220a640cb2a9919261378966057357b53d4.tar.gz
manaverse-b55c6220a640cb2a9919261378966057357b53d4.tar.bz2
manaverse-b55c6220a640cb2a9919261378966057357b53d4.tar.xz
manaverse-b55c6220a640cb2a9919261378966057357b53d4.zip
Remove cards parameter from Being::setTempSprite.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp23
-rw-r--r--src/being/being.h3
2 files changed, 10 insertions, 16 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);
}
}
}
diff --git a/src/being/being.h b/src/being/being.h
index af3f702c9..25246a8b1 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -341,8 +341,7 @@ class Being notfinal : public ActorSprite,
void setTempSprite(const unsigned int slot,
const int id,
- std::string color,
- CardsList cards) restrict2;
+ std::string color) restrict2;
void updateSprite(const unsigned int slot,
const int id,