QTfrontend/hwform.cpp
changeset 213 c5480c5b11ff
parent 207 287077789132
child 231 c77b16e48273
equal deleted inserted replaced
212:c8c650b23e32 213:c5480c5b11ff
   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 	  HWTeamTempParams params=ui.pageMultiplayer->teamsSelect->getTeamParams(it->TeamName);
   256 	  HWTeamTempParams params=ui.pageMultiplayer->teamsSelect->getTeamParams(it->TeamName);
   257 	  game->AddTeam(it->TeamName, params.numHedgehogs);
   257 	  game->AddTeam(it->TeamName, params);
   258 	}
   258 	}
   259 	game->StartLocal();
   259 	game->StartLocal();
   260 }
   260 }