summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-20 18:32:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-20 21:40:23 +0300
commitf3850f2cf7f4428eed3be0efe9a7c440b9e4d950 (patch)
treecba59ab97c58ef387af91f7af9b7523b3d44c4f7 /src/gui/npcdialog.cpp
parent916433cb8ec57510af08fb5e1549076a7cb420d8 (diff)
downloadplus-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.gz
plus-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.bz2
plus-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.tar.xz
plus-f3850f2cf7f4428eed3be0efe9a7c440b9e4d950.zip
Fix code style.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index 71a884d88..aa86ffeec 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -697,7 +697,7 @@ void NpcDialog::setAvatarAction(int actionId)
{
Being *being = mPlayerBox->getBeing();
if (being)
- being->setAction((Being::Action)actionId);
+ being->setAction(static_cast<Being::Action>(actionId));
}
void NpcDialog::logic()
@@ -706,7 +706,7 @@ void NpcDialog::logic()
if (mShowAvatar && mAvatarBeing)
{
mAvatarBeing->logic();
- if (mPlayerBox->getWidth() < (signed)(3 * getPadding()))
+ if (mPlayerBox->getWidth() < static_cast<signed>(3 * getPadding()))
{
Sprite *sprite = mAvatarBeing->getSprite(0);
if (sprite)