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, |