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