QTfrontend/game.cpp
changeset 3876 3dd031a8b395
parent 3774 af0e68ca273e
child 3919 76d5b32758d9
equal deleted inserted replaced
3875:7d7c16ed5056 3876:3dd031a8b395
   113     HWNamegen namegen;
   113     HWNamegen namegen;
   114 
   114 
   115     HWTeam * team1;
   115     HWTeam * team1;
   116     team1 = new HWTeam;
   116     team1 = new HWTeam;
   117     team1->difficulty = 0;
   117     team1->difficulty = 0;
   118     team1->teamColor = *color1;
   118     team1->teamColor = *colors[0];
   119     team1->numHedgehogs = 4;
   119     team1->numHedgehogs = 4;
   120     namegen.TeamRandomNames(team1,TRUE);
   120     namegen.TeamRandomNames(team1,TRUE);
   121     HWProto::addStringListToBuffer(teamscfg,
   121     HWProto::addStringListToBuffer(teamscfg,
   122             team1->TeamGameConfig(100));
   122             team1->TeamGameConfig(100));
   123 
   123 
   124     HWTeam * team2;
   124     HWTeam * team2;
   125     team2 = new HWTeam;
   125     team2 = new HWTeam;
   126     team2->difficulty = 4;
   126     team2->difficulty = 4;
   127     team2->teamColor = *color2;
   127     team2->teamColor = *colors[1];
   128     team2->numHedgehogs = 4;
   128     team2->numHedgehogs = 4;
   129 	do
   129 	do
   130         namegen.TeamRandomNames(team2,TRUE);
   130         namegen.TeamRandomNames(team2,TRUE);
   131 	while(!team2->TeamName.compare(team1->TeamName) || !team2->Hedgehogs[0].Hat.compare(team1->Hedgehogs[0].Hat));
   131 	while(!team2->TeamName.compare(team1->TeamName) || !team2->Hedgehogs[0].Hat.compare(team1->Hedgehogs[0].Hat));
   132     HWProto::addStringListToBuffer(teamscfg,
   132     HWProto::addStringListToBuffer(teamscfg,