Frontend:
authorsmxx
Mon, 29 Mar 2010 20:27:54 +0000
changeset 3160 f2a3d861b23a
parent 3159 e5eff81d7635
child 3161 cb5f04cc9d76
Frontend: * Avoid two identical team names in quick game.
QTfrontend/game.cpp
--- 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));