diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-29 18:43:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-29 18:43:12 +0300 |
commit | 48a10f839f12790b3ec1f6cb5c50820180ae8339 (patch) | |
tree | c1b5d126b9b48fc10a8ed8c49d9ffd8ea0cda46f /src/being/castingeffect.cpp | |
parent | cad5251c84edb51ddc3180d992eeea043022a216 (diff) | |
download | manaplus-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.gz manaplus-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.bz2 manaplus-48a10f839f12790b3ec1f6cb5c50820180ae8339.tar.xz manaplus-48a10f839f12790b3ec1f6cb5c50820180ae8339.zip |
Fix some issues detected by cppcheck.
Diffstat (limited to 'src/being/castingeffect.cpp')
-rw-r--r-- | src/being/castingeffect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/castingeffect.cpp b/src/being/castingeffect.cpp index abacfde48..d879c5ab6 100644 --- a/src/being/castingeffect.cpp +++ b/src/being/castingeffect.cpp @@ -43,17 +43,17 @@ CastingEffect::CastingEffect(const int skillId, Actor(), mSprite(animation.empty() ? nullptr : AnimatedSprite::load(paths.getStringValue("sprites") + animation)), - mPixelX(x * mapTileSize), - mPixelY(y * mapTileSize), mRectX((x - range) * mapTileSize), mRectY((y - range) * mapTileSize), mRectSize(range * mapTileSize * 2 + mapTileSize), mAnimationX(mRectX + (mRectSize - (mSprite ? mSprite->getWidth() : 0)) / 2), mAnimationY(mRectY + (mRectSize - (mSprite ? - mSprite->getHeight() : 0)) / 2), - mYDiff(range * mapTileSize + 31) + mSprite->getHeight() : 0)) / 2) { + mPixelX = x * mapTileSize; + mPixelY = y * mapTileSize; + mYDiff = range * mapTileSize + 31; if (!mSprite) { reportAlways("Skill %d/%d casting animation '%s' load failed", |