summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-27 21:29:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-27 21:29:06 +0300
commit420664f4025b261674e0cdea503d43fb95beae38 (patch)
treea7f75459b34593f355384abe9e68c20239d1c51a /src/being
parentb2f868c841bf466714796bc9ce155f411ae8df06 (diff)
downloadManaVerse-420664f4025b261674e0cdea503d43fb95beae38.tar.gz
ManaVerse-420664f4025b261674e0cdea503d43fb95beae38.tar.bz2
ManaVerse-420664f4025b261674e0cdea503d43fb95beae38.tar.xz
ManaVerse-420664f4025b261674e0cdea503d43fb95beae38.zip
Add strong typed bool type Speech.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp18
1 files changed, 11 insertions, 7 deletions
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)