From f3850f2cf7f4428eed3be0efe9a7c440b9e4d950 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 20 Jul 2012 18:32:41 +0300 Subject: Fix code style. --- src/gui/npcdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/npcdialog.cpp') 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(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(3 * getPadding())) { Sprite *sprite = mAvatarBeing->getSprite(0); if (sprite) -- cgit v1.2.3-70-g09d2