summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-22 20:16:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-22 20:16:43 +0300
commit5920c144e07d66cdccebc85894649f9b36dc1297 (patch)
tree364b034dc7c0c705721a173d15b84b5bb16a69b3 /src
parentb3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82 (diff)
downloadmv-5920c144e07d66cdccebc85894649f9b36dc1297.tar.gz
mv-5920c144e07d66cdccebc85894649f9b36dc1297.tar.bz2
mv-5920c144e07d66cdccebc85894649f9b36dc1297.tar.xz
mv-5920c144e07d66cdccebc85894649f9b36dc1297.zip
Draw attack range rectangle under monster/player.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 27544496d..d78d8c2d0 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2562,10 +2562,11 @@ void Being::drawSpritesSDL(Graphics *const graphics,
void Being::drawSpriteAt(Graphics *const graphics,
const int x, const int y) const
{
- CompoundSprite::draw(graphics, x, y);
-
if (!userPalette)
+ {
+ CompoundSprite::draw(graphics, x, y);
return;
+ }
if (mHighlightMapPortals &&
mMap &&
@@ -2606,6 +2607,8 @@ void Being::drawSpriteAt(Graphics *const graphics,
2 * attackRange + mapTileSize, 2 * attackRange + mapTileSize));
}
+ CompoundSprite::draw(graphics, x, y);
+
if (mShowMobHP && mInfo && localPlayer && localPlayer->getTarget() == this
&& mType == ActorType::Monster)
{