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:
parent
f2506dd196
commit
fa156568c4
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -279,6 +279,9 @@ bool MapRendererAdventureContext::showSpellRange(const int3 & position) const
|
||||
|
||||
auto hero = adventureInt->curHero();
|
||||
|
||||
if (!hero)
|
||||
return false;
|
||||
|
||||
return !isInScreenRange(hero->getSightCenter(), position);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user