diff -r 8ed6e810051a -r d38da7c19e43 QTfrontend/game.cpp --- a/QTfrontend/game.cpp Sun Sep 25 16:09:55 2011 +0200 +++ b/QTfrontend/game.cpp Sun Sep 25 19:30:10 2011 +0200 @@ -120,13 +120,11 @@ .arg((themesModel->rowCount() > 0) ? themesModel->index(rand() % themesModel->rowCount()).data().toString() : "steel")); HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString()); - HWNamegen namegen; - HWTeam team1; team1.setDifficulty(0); team1.setColor(QColor(colors[0])); team1.setNumHedgehogs(4); - namegen.teamRandomNames(team1,TRUE); + HWNamegen::teamRandomNames(team1,true); HWProto::addStringListToBuffer(teamscfg, team1.teamGameConfig(100)); @@ -135,7 +133,7 @@ team2.setColor(QColor(colors[1])); team2.setNumHedgehogs(4); do - namegen.teamRandomNames(team2,TRUE); + HWNamegen::teamRandomNames(team2,true); while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat)); HWProto::addStringListToBuffer(teamscfg, team2.teamGameConfig(100));