1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

- Commanders will now be properly intialized

- Commanders show in the battle
This commit is contained in:
DjWarmonger
2012-04-28 11:41:20 +00:00
parent b0371597cd
commit 82f3bc8135
7 changed files with 40 additions and 8 deletions

View File

@ -777,6 +777,7 @@ void CGHeroInstance::initHero()
if (GameConstants::COMMANDERS)
{
commander = new CCommanderInstance (VLC->creh->factionCommanders[type->heroType / 2]); //hopefully it returns town type
commander->setArmyObj (castToArmyObj()); //TODO: separate function for setting commanders
}
hoverName = VLC->generaltexth->allTexts[15];