1
0
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:
Michał W. Urbańczyk
2009-08-27 08:04:32 +00:00
parent e806399246
commit 6bdfddd0c4
15 changed files with 472 additions and 111 deletions

View File

@ -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;