QTfrontend/game.cpp
changeset 3160 f2a3d861b23a
parent 3011 73c8f618fd8b
child 3162 663e0e55e5c7
equal deleted inserted replaced
3159:e5eff81d7635 3160:f2a3d861b23a
   120     HWTeam * team2;
   120     HWTeam * team2;
   121     team2 = new HWTeam;
   121     team2 = new HWTeam;
   122     team2->difficulty = 4;
   122     team2->difficulty = 4;
   123     team2->teamColor = *color2;
   123     team2->teamColor = *color2;
   124     team2->numHedgehogs = 4;
   124     team2->numHedgehogs = 4;
   125     namegen.TeamRandomNames(team2,TRUE);
   125 	do
       
   126         namegen.TeamRandomNames(team2,TRUE);
       
   127 	while(!team2->TeamName.compare(team1->TeamName));
   126     HWProto::addStringListToBuffer(teamscfg,
   128     HWProto::addStringListToBuffer(teamscfg,
   127             team2->TeamGameConfig(100));
   129             team2->TeamGameConfig(100));
   128 
   130 
   129     HWProto::addStringToBuffer(teamscfg, "eammstore " + *cDefaultAmmoStore);
   131     HWProto::addStringToBuffer(teamscfg, "eammstore " + *cDefaultAmmoStore);
   130     HWProto::addStringToBuffer(teamscfg, "eammstore " + *cDefaultAmmoStore);
   132     HWProto::addStringToBuffer(teamscfg, "eammstore " + *cDefaultAmmoStore);