From 420664f4025b261674e0cdea503d43fb95beae38 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 27 May 2015 21:29:06 +0300 Subject: Add strong typed bool type Speech. --- src/being/being.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/being') diff --git a/src/being/being.cpp b/src/being/being.cpp index 206151533..9c820f0c5 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -567,10 +567,11 @@ void Being::setSpeech(const std::string &text, const std::string &channel, { delete mText; mText = new Text(mSpeech, - getPixelX(), getPixelY() - getHeight(), - Graphics::CENTER, - &userPalette->getColor(UserPalette::PARTICLE), - true); + getPixelX(), + getPixelY() - getHeight(), + Graphics::CENTER, + &userPalette->getColor(UserPalette::PARTICLE), + Speech_true); } else { @@ -1875,9 +1876,12 @@ void Being::drawSpeech(const int offsetX, const int offsetY) if (!mText && userPalette) { - mText = new Text(mSpeech, getPixelX(), getPixelY() - getHeight(), - Graphics::CENTER, &theme->getColor( - Theme::BUBBLE_TEXT, 255), true); + mText = new Text(mSpeech, + getPixelX(), + getPixelY() - getHeight(), + Graphics::CENTER, + &theme->getColor(Theme::BUBBLE_TEXT, 255), + Speech_true); } } else if (speech == BeingSpeech::NO_SPEECH) -- cgit v1.2.3-60-g2f50