summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-04 16:29:14 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-04 20:20:52 +0100
commit5c7f9d1d216fd1edca231ed274ac3077cb34909f (patch)
tree234405f8f9d0b422a02d8cc44854aaa6992cf2d9 /src/being.cpp
parentd5ebad4e74da011777f9ba1a13fbb37d18c827b9 (diff)
downloadmana-5c7f9d1d216fd1edca231ed274ac3077cb34909f.tar.gz
mana-5c7f9d1d216fd1edca231ed274ac3077cb34909f.tar.bz2
mana-5c7f9d1d216fd1edca231ed274ac3077cb34909f.tar.xz
mana-5c7f9d1d216fd1edca231ed274ac3077cb34909f.zip
Fixed character display
This change fixes hair style to take into account "race", which makes the faces visible again. Hair colors should also be fixed now, with partial support for itemcolors.xml added. The Mana client now also supports per-character gender, and it now hides the hair style and color buttons on character creation, when there are none to choose from. Closes #43
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp
index ad43ec52..46b499af 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -942,9 +942,9 @@ void Being::showName()
{
if (config.getBoolValue("showgender"))
{
- if (getGender() == GENDER_FEMALE)
+ if (getGender() == Gender::FEMALE)
mDisplayName += " \u2640";
- else if (getGender() == GENDER_MALE)
+ else if (getGender() == Gender::MALE)
mDisplayName += " \u2642";
}
@@ -1041,7 +1041,7 @@ void Being::setSprite(unsigned int slot, int id, const std::string &color,
}
else
{
- std::string filename = itemDb->get(id).getSprite(mGender);
+ std::string filename = itemDb->get(id).getSprite(mGender, mSubType);
AnimatedSprite *equipmentSprite = nullptr;
if (!filename.empty())