summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-06 18:55:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-06 18:55:26 +0300
commita86bdc28fb8bc8a70c6a19523789495d87c7a56d (patch)
tree18ebdbac9d236a3358af836e70544f0da905ee45 /src/being/being.cpp
parentc25141f02a5b3dcddcc93ca5d2bd2fcdad5efb31 (diff)
downloadmanaplus-a86bdc28fb8bc8a70c6a19523789495d87c7a56d.tar.gz
manaplus-a86bdc28fb8bc8a70c6a19523789495d87c7a56d.tar.bz2
manaplus-a86bdc28fb8bc8a70c6a19523789495d87c7a56d.tar.xz
manaplus-a86bdc28fb8bc8a70c6a19523789495d87c7a56d.zip
Add strong type bool type ForceDisplay.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index a493d9a1a..472836140 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -336,7 +336,9 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look)
if (mInfo)
{
setName(mInfo->getName());
- setupSpriteDisplay(mInfo->getDisplay(), true, 0,
+ setupSpriteDisplay(mInfo->getDisplay(),
+ ForceDisplay_true,
+ 0,
mInfo->getColor(mLook));
mYDiff = mInfo->getSortOffsetY();
}
@@ -348,7 +350,9 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look)
if (mInfo)
{
setName(mInfo->getName());
- setupSpriteDisplay(mInfo->getDisplay(), true, 0,
+ setupSpriteDisplay(mInfo->getDisplay(),
+ ForceDisplay_true,
+ 0,
mInfo->getColor(mLook));
mYDiff = mInfo->getSortOffsetY();
}
@@ -359,7 +363,9 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look)
if (mInfo)
{
setName(mInfo->getName());
- setupSpriteDisplay(mInfo->getDisplay(), true, 0,
+ setupSpriteDisplay(mInfo->getDisplay(),
+ ForceDisplay_true,
+ 0,
mInfo->getColor(mLook));
mYDiff = mInfo->getSortOffsetY();
}
@@ -370,7 +376,9 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look)
if (mInfo)
{
setName(mInfo->getName());
- setupSpriteDisplay(mInfo->getDisplay(), true, 0,
+ setupSpriteDisplay(mInfo->getDisplay(),
+ ForceDisplay_true,
+ 0,
mInfo->getColor(mLook));
mYDiff = mInfo->getSortOffsetY();
}
@@ -381,7 +389,7 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look)
mInfo = NPCDB::get(mSubType);
if (mInfo)
{
- setupSpriteDisplay(mInfo->getDisplay(), false);
+ setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false);
mYDiff = mInfo->getSortOffsetY();
}
}
@@ -389,7 +397,7 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look)
{
mInfo = AvatarDB::get(mSubType);
if (mInfo)
- setupSpriteDisplay(mInfo->getDisplay(), false);
+ setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false);
}
else if (mType == ActorType::LocalPet)
{
@@ -397,7 +405,7 @@ void Being::setSubtype(const uint16_t subtype, const uint16_t look)
if (mInfo)
{
setName(mInfo->getName());
- setupSpriteDisplay(mInfo->getDisplay(), false);
+ setupSpriteDisplay(mInfo->getDisplay(), ForceDisplay_false);
mYDiff = mInfo->getSortOffsetY();
const int speed = mInfo->getWalkSpeed();
if (!speed)