QTfrontend/game.cpp
changeset 352 4665bfe25470
parent 341 184230eb4151
child 379 e4cd3cd209c6
equal deleted inserted replaced
351:29bc9c36ad5f 352:4665bfe25470
    75 	qDebug() << "config" << gamecfg->getFullConfig();
    75 	qDebug() << "config" << gamecfg->getFullConfig();
    76 
    76 
    77 	if (m_pTeamSelWidget)
    77 	if (m_pTeamSelWidget)
    78 	{
    78 	{
    79 		qDebug() << "adding teams from teamselwidget...";
    79 		qDebug() << "adding teams from teamselwidget...";
    80 		QList<HWTeam> teams = QList<HWTeam>::fromStdList(m_pTeamSelWidget->getPlayingTeams());
    80 		QList<HWTeam> teams = m_pTeamSelWidget->getPlayingTeams();
    81 		for(QList<HWTeam>::iterator it = teams.begin(); it != teams.end(); ++it)
    81 		for(QList<HWTeam>::iterator it = teams.begin(); it != teams.end(); ++it)
    82 		{
    82 		{
    83 			qDebug() << "a team...";
    83 			qDebug() << "a team...";
    84 			(*it).numHedgehogs = 4;
    84 			//(*it).numHedgehogs = 4;
    85 			HWProto::addStringListToBuffer(buf,
    85 			HWProto::addStringListToBuffer(buf,
    86 				(*it).TeamGameConfig(gamecfg->getInitHealth()));
    86 				(*it).TeamGameConfig(gamecfg->getInitHealth()));
    87 		}
    87 		}
    88 	}
    88 	}
    89 	RawSendIPC(buf);
    89 	RawSendIPC(buf);