summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-21 15:46:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-21 15:46:14 +0300
commit5c61d7b6e04a824b9a60f25e73abd938487b2fc4 (patch)
tree73d9e751b32076a90f6277bda1eb8d6cc66d05a3 /src/being/being.cpp
parentfbadc806e050929f44b54fc2973a28d2fdfc516c (diff)
downloadplus-5c61d7b6e04a824b9a60f25e73abd938487b2fc4.tar.gz
plus-5c61d7b6e04a824b9a60f25e73abd938487b2fc4.tar.bz2
plus-5c61d7b6e04a824b9a60f25e73abd938487b2fc4.tar.xz
plus-5c61d7b6e04a824b9a60f25e73abd938487b2fc4.zip
Remove colorId parameter from Being::updateSprite.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 4e6795d70..fae5224b6 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2469,8 +2469,7 @@ void Being::updateColors()
void Being::updateSprite(const unsigned int slot,
const int id,
- const std::string &restrict color,
- const ItemColor colorId) restrict2
+ const std::string &restrict color) restrict2
{
if (!charServerHandler || slot >= charServerHandler->maxSprite())
return;
@@ -2480,11 +2479,9 @@ void Being::updateSprite(const unsigned int slot,
if (slot && mSlots[slot].spriteId == id)
return;
- setSpriteCards(slot,
+ setSpriteColor(slot,
id,
- color,
- colorId,
- mSlots[slot].cardsId);
+ color);
}
// set sprite id, reset colors, reset cards
@@ -2614,7 +2611,7 @@ void Being::unSetSprite(const unsigned int slot) restrict2
beingEquipmentWindow->updateBeing(this);
}
-// set sprite id, colors, reset cards
+// set sprite id, use color string, reset cards
void Being::setSpriteColor(const unsigned int slot,
const int id,
std::string color) restrict2
@@ -2708,7 +2705,7 @@ void Being::setSpriteColor(const unsigned int slot,
beingEquipmentWindow->updateBeing(this);
}
-// set sprite id, colors, reset cards
+// set sprite id, use color id, reset cards
void Being::setSpriteColorId(const unsigned int slot,
const int id,
ItemColor colorId) restrict2