summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/castingeffect.cpp8
-rw-r--r--src/being/castingeffect.h3
2 files changed, 4 insertions, 7 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",
diff --git a/src/being/castingeffect.h b/src/being/castingeffect.h
index 6958da880..fceccc10c 100644
--- a/src/being/castingeffect.h
+++ b/src/being/castingeffect.h
@@ -66,14 +66,11 @@ class CastingEffect final : public Actor
protected:
AnimatedSprite *mSprite;
- int mPixelX;
- int mPixelY;
int mRectX;
int mRectY;
int mRectSize;
int mAnimationX;
int mAnimationY;
- int mYDiff;
};
#endif // BEING_CASTINGEFFECT_H