QTfrontend/game.cpp
changeset 7130 fcab1fd02bc6
parent 7090 63d09a846444
child 7152 f49254ddfc67
child 7180 53ffc8853008
child 7201 dc17ffdf0702
child 7218 9ecd5bc9810b
equal deleted inserted replaced
7128:574b385ce7df 7130:fcab1fd02bc6
   122                                .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel"));
   122                                .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel"));
   123     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
   123     HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString());
   124 
   124 
   125     HWTeam team1;
   125     HWTeam team1;
   126     team1.setDifficulty(0);
   126     team1.setDifficulty(0);
   127     team1.setColor(QColor(colors[0]));
   127     team1.setColor(0);
   128     team1.setNumHedgehogs(4);
   128     team1.setNumHedgehogs(4);
   129     HWNamegen::teamRandomNames(team1,true);
   129     HWNamegen::teamRandomNames(team1,true);
   130     HWProto::addStringListToBuffer(teamscfg,
   130     HWProto::addStringListToBuffer(teamscfg,
   131                                    team1.teamGameConfig(100));
   131                                    team1.teamGameConfig(100));
   132 
   132 
   133     HWTeam team2;
   133     HWTeam team2;
   134     team2.setDifficulty(4);
   134     team2.setDifficulty(4);
   135     team2.setColor(QColor(colors[1]));
   135     team2.setColor(1);
   136     team2.setNumHedgehogs(4);
   136     team2.setNumHedgehogs(4);
   137     do
   137     do
   138         HWNamegen::teamRandomNames(team2,true);
   138         HWNamegen::teamRandomNames(team2,true);
   139     while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat));
   139     while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat));
   140     HWProto::addStringListToBuffer(teamscfg,
   140     HWProto::addStringListToBuffer(teamscfg,