equal
deleted
inserted
replaced
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 |