equal
deleted
inserted
replaced
460 if(teamslist.empty()) |
460 if(teamslist.empty()) |
461 { |
461 { |
462 QString currentNickName = config->value("net/nick",tr("Guest")+QString("%1").arg(rand())).toString().toUtf8(); |
462 QString currentNickName = config->value("net/nick",tr("Guest")+QString("%1").arg(rand())).toString().toUtf8(); |
463 QString teamName; |
463 QString teamName; |
464 int firstHumanTeam = 1; |
464 int firstHumanTeam = 1; |
465 int lastHumanTeam = 4; |
465 int lastHumanTeam = 2; |
466 |
466 |
467 // Default team |
467 // Default team |
468 if (currentNickName.isEmpty()) |
468 if (currentNickName.isEmpty()) |
469 { |
469 { |
470 teamName = tr("Team 1"); |
470 teamName = tr("Team 1"); |
497 HWNamegen::teamRandomFort(numberTeam, false); |
497 HWNamegen::teamRandomFort(numberTeam, false); |
498 numberTeam.saveToFile(); |
498 numberTeam.saveToFile(); |
499 teamslist.push_back(teamName); |
499 teamslist.push_back(teamName); |
500 } |
500 } |
501 // Add 2 default CPU teams |
501 // Add 2 default CPU teams |
502 for(int i=2; i<=5; i=i+2) |
502 for(int i=1; i<=5; i=i+2) |
503 { |
503 { |
504 //: Default computer team name |
504 //: Default computer team name |
505 teamName = tr("Computer %1").arg(i); |
505 teamName = tr("Computer %1").arg(i); |
506 HWTeam numberTeam(teamName); |
506 HWTeam numberTeam(teamName); |
507 HWNamegen::teamRandomGrave(numberTeam, false); |
507 HWNamegen::teamRandomGrave(numberTeam, false); |