QTfrontend/util/namegen.cpp
changeset 6824 617a861b7750
parent 6700 e04da46ee43c
child 6930 d187ea93fc4f
equal deleted inserted replaced
6823:e54a68b9b844 6824:617a861b7750
    77             team.setHedgehog(i,hh);
    77             team.setHedgehog(i,hh);
    78         }
    78         }
    79 
    79 
    80         // there is a chance that this hog has the same hat as the previous one
    80         // there is a chance that this hog has the same hat as the previous one
    81         // let's reuse the hat-specific dict in this case
    81         // let's reuse the hat-specific dict in this case
    82         if ((i == 0) or (team.hedgehog(i).Hat != team.hedgehog(i-1).Hat))
    82         if ((i == 0) || (team.hedgehog(i).Hat != team.hedgehog(i-1).Hat))
    83         {
    83         {
    84             dicts = dictsForHat(team.hedgehog(i).Hat);
    84             dicts = dictsForHat(team.hedgehog(i).Hat);
    85             dict  = dictContents(dicts[rand()%(dicts.size())]);
    85             dict  = dictContents(dicts[rand()%(dicts.size())]);
    86         }
    86         }
    87 
    87