QTfrontend/game.cpp
changeset 11888 618d99523933
parent 11364 b0df3f2fcafc
child 11968 1de4d6b35748
equal deleted inserted replaced
11887:083c12795632 11888:618d99523933
   152     HWTeam team1;
   152     HWTeam team1;
   153     team1.setDifficulty(0);
   153     team1.setDifficulty(0);
   154     team1.setColor(0);
   154     team1.setColor(0);
   155     team1.setNumHedgehogs(4);
   155     team1.setNumHedgehogs(4);
   156     HWNamegen::teamRandomNames(team1,true);
   156     HWNamegen::teamRandomNames(team1,true);
       
   157     team1.setVoicepack("Default");
   157     HWProto::addStringListToBuffer(teamscfg,
   158     HWProto::addStringListToBuffer(teamscfg,
   158                                    team1.teamGameConfig(100));
   159                                    team1.teamGameConfig(100));
   159 
   160 
   160     HWTeam team2;
   161     HWTeam team2;
   161     team2.setDifficulty(4);
   162     team2.setDifficulty(4);
   162     team2.setColor(1);
   163     team2.setColor(1);
   163     team2.setNumHedgehogs(4);
   164     team2.setNumHedgehogs(4);
   164     do
   165     do
   165         HWNamegen::teamRandomNames(team2,true);
   166         HWNamegen::teamRandomNames(team2,true);
   166     while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat));
   167     while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat));
       
   168     team2.setVoicepack("Default");
   167     HWProto::addStringListToBuffer(teamscfg,
   169     HWProto::addStringListToBuffer(teamscfg,
   168                                    team2.teamGameConfig(100));
   170                                    team2.teamGameConfig(100));
   169 
   171 
   170     HWProto::addStringToBuffer(teamscfg, QString("eammloadt %1").arg(cDefaultAmmoStore->mid(0, cAmmoNumber)));
   172     HWProto::addStringToBuffer(teamscfg, QString("eammloadt %1").arg(cDefaultAmmoStore->mid(0, cAmmoNumber)));
   171     HWProto::addStringToBuffer(teamscfg, QString("eammprob %1").arg(cDefaultAmmoStore->mid(cAmmoNumber, cAmmoNumber)));
   173     HWProto::addStringToBuffer(teamscfg, QString("eammprob %1").arg(cDefaultAmmoStore->mid(cAmmoNumber, cAmmoNumber)));