mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Mostly implemented Scenario Information and Save Game windows. Adventure Options Window (crash after closing it is known, will be soon fixed). Several minor improvements for pregame. Arrogance will be selected by default when starting a new game.
This commit is contained in:
@ -1090,7 +1090,11 @@ void CGameState::init(StartInfo * si, Mapa * map, int Seed)
|
||||
break;
|
||||
if(j == scenarioOps->playerInfos.size())
|
||||
continue;
|
||||
|
||||
int h=pickHero(i);
|
||||
if(scenarioOps->playerInfos[j].hero == -1)
|
||||
scenarioOps->playerInfos[j].hero = h;
|
||||
|
||||
CGHeroInstance * nnn = static_cast<CGHeroInstance*>(createObject(HEROI_TYPE,h,hpos,i));
|
||||
nnn->id = map->objects.size();
|
||||
hpos = map->players[i].posOfMainTown;hpos.x+=2;
|
||||
|
Reference in New Issue
Block a user