1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fixes according to review

This commit is contained in:
Ivan Savenko 2023-04-24 16:58:15 +03:00
parent f2506dd196
commit fa156568c4
3 changed files with 5 additions and 1 deletions

View File

@ -189,7 +189,7 @@ bool HeroManager::canRecruitHero(const CGTownInstance * town) const
if(!town || !townHasFreeTavern(town))
return false;
if(cb->getResourceAmount(EGameResID::GOLD) < GameConstants::HERO_GOLD_COST)
if(cb->getResourceAmount(Res::GOLD) < GameConstants::HERO_GOLD_COST)
return false;
const bool includeGarnisoned = true;

View File

@ -16,6 +16,7 @@
* Fixed crash on empty save game list after filtering
* Fixed blocked progress in Launcher on language detection failure
* Launcher will now correctly handle selection of Ddata directory in H3 install
* Map editor will now correctly save message property for events and pandoras
# 1.1.1 -> 1.2.0

View File

@ -279,6 +279,9 @@ bool MapRendererAdventureContext::showSpellRange(const int3 & position) const
auto hero = adventureInt->curHero();
if (!hero)
return false;
return !isInScreenRange(hero->getSightCenter(), position);
}