QTfrontend/util/namegen.cpp
changeset 13910 6c8d4e140f27
parent 12630 11f5fe0407e5
child 14934 0ec0ed2d9045
equal deleted inserted replaced
13909:a44e4c057f57 13910:6c8d4e140f27
   153 
   153 
   154     bool sameHogs = (rand()%2) == 0;
   154     bool sameHogs = (rand()%2) == 0;
   155     for(int i = 0; i < HEDGEHOGS_PER_TEAM; i++)
   155     for(int i = 0; i < HEDGEHOGS_PER_TEAM; i++)
   156     {
   156     {
   157         HWHog hh = team.hedgehog(i);
   157         HWHog hh = team.hedgehog(i);
   158         if (sameHogs and i > 0)
   158         if (sameHogs && i > 0)
   159             hh.Hat = team.hedgehog(i-1).Hat;
   159             hh.Hat = team.hedgehog(i-1).Hat;
   160         else
   160         else
   161             hh.Hat = getRandomHat(withDLC);
   161             hh.Hat = getRandomHat(withDLC);
   162         team.setHedgehog(i, hh);
   162         team.setHedgehog(i, hh);
   163     }
   163     }