summaryrefslogtreecommitdiff
path: root/src/being/castingeffect.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-05 20:46:04 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-05 20:51:29 +0300
commit83a63491758eb2cd6de149d33c0833a7f8eb97f5 (patch)
treeeaeca77ee141e1ecb6b66d8cdb255e107c21d099 /src/being/castingeffect.cpp
parentd90079ee6f242279e544a21e7de8d11ad3b5e272 (diff)
downloadmv-83a63491758eb2cd6de149d33c0833a7f8eb97f5.tar.gz
mv-83a63491758eb2cd6de149d33c0833a7f8eb97f5.tar.bz2
mv-83a63491758eb2cd6de149d33c0833a7f8eb97f5.tar.xz
mv-83a63491758eb2cd6de149d33c0833a7f8eb97f5.zip
Draw rescaled casting animation to whole skill area size.
Diffstat (limited to 'src/being/castingeffect.cpp')
-rw-r--r--src/being/castingeffect.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/being/castingeffect.cpp b/src/being/castingeffect.cpp
index 14b9051e7..872743f82 100644
--- a/src/being/castingeffect.cpp
+++ b/src/being/castingeffect.cpp
@@ -83,9 +83,11 @@ void CastingEffect::draw(Graphics *const graphics,
mRectSize));
if (mSprite != nullptr)
{
- mSprite->draw(graphics,
- mAnimationX + offsetX,
- mAnimationY + offsetY);
+ mSprite->drawRescaled(graphics,
+ mRectX + offsetX,
+ mRectY + offsetY,
+ mRectSize,
+ mRectSize);
}
}