diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-22 20:16:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-22 20:16:43 +0300 |
commit | 5920c144e07d66cdccebc85894649f9b36dc1297 (patch) | |
tree | 364b034dc7c0c705721a173d15b84b5bb16a69b3 /src/being/being.cpp | |
parent | b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82 (diff) | |
download | manaverse-5920c144e07d66cdccebc85894649f9b36dc1297.tar.gz manaverse-5920c144e07d66cdccebc85894649f9b36dc1297.tar.bz2 manaverse-5920c144e07d66cdccebc85894649f9b36dc1297.tar.xz manaverse-5920c144e07d66cdccebc85894649f9b36dc1297.zip |
Draw attack range rectangle under monster/player.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 7 |
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) { |