QTfrontend/game.cpp
changeset 12244 45c83c88ac4b
parent 11968 1de4d6b35748
child 12248 07f67ee424dc
equal deleted inserted replaced
12243:8a6a40f2e3dc 12244:45c83c88ac4b
   152 
   152 
   153     HWTeam team1;
   153     HWTeam team1;
   154     team1.setDifficulty(0);
   154     team1.setDifficulty(0);
   155     team1.setColor(0);
   155     team1.setColor(0);
   156     team1.setNumHedgehogs(4);
   156     team1.setNumHedgehogs(4);
   157     HWNamegen::teamRandomNames(team1,true);
   157     HWNamegen::teamRandomEverything(team1,true);
   158     team1.setVoicepack("Default");
   158     team1.setVoicepack("Default");
   159     HWProto::addStringListToBuffer(teamscfg,
   159     HWProto::addStringListToBuffer(teamscfg,
   160                                    team1.teamGameConfig(100));
   160                                    team1.teamGameConfig(100));
   161 
   161 
   162     HWTeam team2;
   162     HWTeam team2;
   163     team2.setDifficulty(4);
   163     team2.setDifficulty(4);
   164     team2.setColor(1);
   164     team2.setColor(1);
   165     team2.setNumHedgehogs(4);
   165     team2.setNumHedgehogs(4);
   166     do
   166     do
   167         HWNamegen::teamRandomNames(team2,true);
   167         HWNamegen::teamRandomEverything(team2,true);
   168     while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat));
   168     while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat));
   169     team2.setVoicepack("Default");
   169     team2.setVoicepack("Default");
   170     HWProto::addStringListToBuffer(teamscfg,
   170     HWProto::addStringListToBuffer(teamscfg,
   171                                    team2.teamGameConfig(100));
   171                                    team2.teamGameConfig(100));
   172 
   172