1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Do not show visitable for current hero

This commit is contained in:
krs
2023-03-08 22:43:52 +02:00
parent 010c548dc1
commit 1f06a62219
4 changed files with 21 additions and 1 deletions

View File

@@ -68,6 +68,21 @@ bool MapRendererBaseContext::isVisible(const int3 & coordinates) const
return LOCPLINT->cb->isVisible(coordinates);
}
bool MapRendererBaseContext::isActiveHero(const CGObjectInstance * obj) const
{
if(obj->ID == Obj::HERO)
{
assert(dynamic_cast<const CGHeroInstance *>(obj) != nullptr);
if(adventureInt->curHero() != nullptr)
{
if(obj->id == adventureInt->curHero()->id)
return true;
}
}
return false;
}
bool MapRendererBaseContext::tileAnimated(const int3 & coordinates) const
{
return false;