From 5920c144e07d66cdccebc85894649f9b36dc1297 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Jun 2015 20:16:43 +0300 Subject: Draw attack range rectangle under monster/player. --- src/being/being.cpp | 7 +++++-- 1 file 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) { -- cgit v1.2.3-60-g2f50