mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +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;
|
||||
|
||||
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;
|
||||
|
||||
placeStartingHero(playerColor, HeroTypeID(heroTypeId), playerInfo.posOfMainTown);
|
||||
|
Loading…
x
Reference in New Issue
Block a user