From 01a0e4b658241cc3dbd8a5d11d34a6de48dab159 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Thu, 28 May 2015 00:55:13 +0300
Subject: Add strong typed bool type Visible.

---
 src/being/being.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/being')

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)
     }
 }
-- 
cgit v1.2.3-70-g09d2