QTfrontend/game.cpp
changeset 6024 d38da7c19e43
parent 6015 daffc14a518a
child 6211 ee9465c0ea82
--- 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));