summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
commit01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch)
tree37294c079b9a05768b7380f7595784eb73485769 /src/being/being.cpp
parent072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff)
downloadmanaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz
manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2
manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz
manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip
Add strong typed bool type Visible.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index a4ffbbf3f..482dd14eb 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1854,7 +1854,7 @@ void Being::drawSpeech(const int offsetX, const int offsetY)
if (mSpeechTime == 0)
{
if (mSpeechBubble && mSpeechBubble->isVisibleLocal())
- mSpeechBubble->setVisible(false);
+ mSpeechBubble->setVisible(Visible_false);
mSpeech.clear();
}
else if (mSpeechTime > 0 && (speech == BeingSpeech::NAME_IN_BUBBLE ||
@@ -1866,14 +1866,14 @@ void Being::drawSpeech(const int offsetX, const int offsetY)
{
mSpeechBubble->setPosition(px - (mSpeechBubble->getWidth() / 2),
py - getHeight() - (mSpeechBubble->getHeight()));
- mSpeechBubble->setVisible(true);
+ mSpeechBubble->setVisible(Visible_true);
mSpeechBubble->requestMoveToBackground();
}
}
else if (mSpeechTime > 0 && speech == BeingSpeech::TEXT_OVERHEAD)
{
if (mSpeechBubble)
- mSpeechBubble->setVisible(false);
+ mSpeechBubble->setVisible(Visible_false);
if (!mText && userPalette)
{
@@ -1888,7 +1888,7 @@ void Being::drawSpeech(const int offsetX, const int offsetY)
else if (speech == BeingSpeech::NO_SPEECH)
{
if (mSpeechBubble)
- mSpeechBubble->setVisible(false);
+ mSpeechBubble->setVisible(Visible_false);
delete2(mText)
}
}