QTfrontend/hwform.cpp
changeset 12296 62975c0a89c6
parent 12244 45c83c88ac4b
child 12305 d3a52e51efd4
equal deleted inserted replaced
12295:ac57d564efce 12296:62975c0a89c6
   471         {
   471         {
   472             teamName = tr("%1's Team").arg(currentNickName);
   472             teamName = tr("%1's Team").arg(currentNickName);
   473         }
   473         }
   474 
   474 
   475         HWTeam defaultTeam(teamName);
   475         HWTeam defaultTeam(teamName);
   476         // Randomize fort and grave for greater variety by default
   476         // Randomize fort and grave for greater variety by default.
   477         HWNamegen::teamRandomGrave(defaultTeam);
   477         // But we exclude DLC graves and forts to not have desyncing teams by default
   478         HWNamegen::teamRandomFort(defaultTeam);
   478         // TODO: Remove DLC filtering when it isn't neccessary anymore
       
   479         HWNamegen::teamRandomGrave(defaultTeam, false);
       
   480         HWNamegen::teamRandomFort(defaultTeam, false);
   479         defaultTeam.saveToFile();
   481         defaultTeam.saveToFile();
   480         teamslist.push_back(teamName);
   482         teamslist.push_back(teamName);
   481 
   483 
   482         // Add 3 additional teams to allow local multiplayer instantly
   484         // Add 3 additional teams to allow local multiplayer instantly
   483         for(int i=2; i<=4; i++)
   485         for(int i=2; i<=4; i++)
   484         {
   486         {
   485             teamName = tr("Team %1").arg(i);
   487             teamName = tr("Team %1").arg(i);
   486             HWTeam numberTeam(teamName);
   488             HWTeam numberTeam(teamName);
   487             HWNamegen::teamRandomGrave(numberTeam);
   489             HWNamegen::teamRandomGrave(numberTeam, false);
   488             HWNamegen::teamRandomFort(numberTeam);
   490             HWNamegen::teamRandomFort(numberTeam, false);
   489             numberTeam.saveToFile();
   491             numberTeam.saveToFile();
   490             teamslist.push_back(teamName);
   492             teamslist.push_back(teamName);
   491         }
   493         }
   492     }
   494     }
   493 
   495