summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-04 03:18:46 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-04 03:18:46 +0300
commit5612fb3a7f20a9385ba786bb25d25081b86259dd (patch)
treea7548d655f6f8d8298d94ce2f433dd287cde78bd /src/being
parent4431f40818f832e2cbae061927bdf59904cf5d3b (diff)
downloadmanaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.gz
manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.bz2
manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.tar.xz
manaverse-5612fb3a7f20a9385ba786bb25d25081b86259dd.zip
Fix code style.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp2
-rw-r--r--src/being/localplayer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 7cfc18760..4082f6f07 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -4095,7 +4095,7 @@ void Being::drawHpBar(Graphics *restrict const graphics,
if (p <= 0 || p > width)
return;
- const int dx = static_cast<const int>(static_cast<float>(width) / p);
+ const int dx = static_cast<int>(static_cast<float>(width) / p);
#ifdef TMWA_SUPPORT
if (!serverFeatures->haveServerHp())
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index ee3213245..969873ef2 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -2418,7 +2418,7 @@ void LocalPlayer::imitateOutfit(const Being *const player,
return;
const AnimatedSprite *const equipmentSprite
- = dynamic_cast<const AnimatedSprite *const>(
+ = dynamic_cast<const AnimatedSprite *>(
player->mSprites[sprite]);
if (equipmentSprite)