mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Do not show visitable for current hero
This commit is contained in:
@@ -601,7 +601,7 @@ void MapRendererDebug::renderTile(IMapRendererContext & context, Canvas & target
|
||||
{
|
||||
const auto * object = context.getObject(objectID);
|
||||
|
||||
if (context.objectTransparency(objectID, coordinates) > 0)
|
||||
if(context.objectTransparency(objectID, coordinates) > 0 && !context.isActiveHero(object))
|
||||
{
|
||||
visitable |= object->visitableAt(coordinates.x, coordinates.y);
|
||||
blocking |= object->blockingAt(coordinates.x, coordinates.y);
|
||||
|
||||
Reference in New Issue
Block a user