QTfrontend/hwform.cpp
changeset 207 287077789132
parent 187 96c3154efee5
child 213 c5480c5b11ff
equal deleted inserted replaced
206:32fa6282efe2 207:287077789132
   251 void HWForm::StartMPGame()
   251 void HWForm::StartMPGame()
   252 {
   252 {
   253 	game = new HWGame(config, ui.pageMultiplayer->gameCFG);
   253 	game = new HWGame(config, ui.pageMultiplayer->gameCFG);
   254 	list<HWTeam> teamslist=ui.pageMultiplayer->teamsSelect->getPlayingTeams();
   254 	list<HWTeam> teamslist=ui.pageMultiplayer->teamsSelect->getPlayingTeams();
   255 	for (list<HWTeam>::const_iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
   255 	for (list<HWTeam>::const_iterator it = teamslist.begin(); it != teamslist.end(); ++it ) {
   256 	  game->AddTeam(it->TeamName, ui.pageMultiplayer->teamsSelect->numHedgedogs(it->TeamName));
   256 	  HWTeamTempParams params=ui.pageMultiplayer->teamsSelect->getTeamParams(it->TeamName);
       
   257 	  game->AddTeam(it->TeamName, params.numHedgehogs);
   257 	}
   258 	}
   258 	game->StartLocal();
   259 	game->StartLocal();
   259 }
   260 }