mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-02 22:05:43 +02:00
Merge pull request #5231 from dydzio0614/random-hero-info
Replace random hero info in scenario info window with generated hero data
This commit is contained in:
commit
ed268159f8
@ -566,7 +566,7 @@ void CGameState::placeStartingHeroes()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
HeroTypeID heroTypeId = pickNextHeroType(playerColor);
|
HeroTypeID heroTypeId = pickNextHeroType(playerColor);
|
||||||
if(playerSettingPair.second.hero == HeroTypeID::NONE)
|
if(playerSettingPair.second.hero == HeroTypeID::NONE || playerSettingPair.second.hero == HeroTypeID::RANDOM)
|
||||||
playerSettingPair.second.hero = heroTypeId;
|
playerSettingPair.second.hero = heroTypeId;
|
||||||
|
|
||||||
placeStartingHero(playerColor, HeroTypeID(heroTypeId), playerInfo.posOfMainTown);
|
placeStartingHero(playerColor, HeroTypeID(heroTypeId), playerInfo.posOfMainTown);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user