QTfrontend/game.cpp
changeset 140 50ccde437ea1
parent 128 223522298250
child 141 ac3680be1f4b
equal deleted inserted replaced
139:340ded7cc336 140:50ccde437ea1
   248 	QMessageBox::critical(0, tr("Error"),
   248 	QMessageBox::critical(0, tr("Error"),
   249 				tr("Unable to run engine: %1 (")
   249 				tr("Unable to run engine: %1 (")
   250 				.arg(error) + bindir->absolutePath() + "/hwengine)");
   250 				.arg(error) + bindir->absolutePath() + "/hwengine)");
   251 }
   251 }
   252 
   252 
   253 void HWGame::AddTeam(const QString & teamname)
   253 void HWGame::AddTeam(const QString & teamname, unsigned char numHedgedogs)
   254 {
   254 {
   255 	if (TeamCount == 5) return;
   255 	if (TeamCount == 5) return;
   256 	teams[TeamCount] = teamname;
   256 	teams[TeamCount] = teamname;
   257 	TeamCount++;
   257 	TeamCount++;
       
   258 	hdNum[teamname]=numHedgedogs;
   258 }
   259 }
   259 
   260 
   260 void HWGame::SaveDemo(const QString & filename)
   261 void HWGame::SaveDemo(const QString & filename)
   261 {
   262 {
   262 	QFile demofile(filename);
   263 	QFile demofile(filename);