QTfrontend/game.cpp
changeset 3160 f2a3d861b23a
parent 3011 73c8f618fd8b
child 3162 663e0e55e5c7
--- a/QTfrontend/game.cpp	Mon Mar 29 18:50:22 2010 +0000
+++ b/QTfrontend/game.cpp	Mon Mar 29 20:27:54 2010 +0000
@@ -122,7 +122,9 @@
     team2->difficulty = 4;
     team2->teamColor = *color2;
     team2->numHedgehogs = 4;
-    namegen.TeamRandomNames(team2,TRUE);
+	do
+        namegen.TeamRandomNames(team2,TRUE);
+	while(!team2->TeamName.compare(team1->TeamName));
     HWProto::addStringListToBuffer(teamscfg,
             team2->TeamGameConfig(100));