diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-05 20:46:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-05 20:51:29 +0300 |
commit | 83a63491758eb2cd6de149d33c0833a7f8eb97f5 (patch) | |
tree | eaeca77ee141e1ecb6b66d8cdb255e107c21d099 /src/being | |
parent | d90079ee6f242279e544a21e7de8d11ad3b5e272 (diff) | |
download | manaverse-83a63491758eb2cd6de149d33c0833a7f8eb97f5.tar.gz manaverse-83a63491758eb2cd6de149d33c0833a7f8eb97f5.tar.bz2 manaverse-83a63491758eb2cd6de149d33c0833a7f8eb97f5.tar.xz manaverse-83a63491758eb2cd6de149d33c0833a7f8eb97f5.zip |
Draw rescaled casting animation to whole skill area size.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/castingeffect.cpp | 8 |
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); } } |