equal
deleted
inserted
replaced
61 |
61 |
62 QColor FrameTeams::getNextColor() const |
62 QColor FrameTeams::getNextColor() const |
63 { |
63 { |
64 int idx = availableColors.indexOf(currentColor); |
64 int idx = availableColors.indexOf(currentColor); |
65 |
65 |
66 idx = ++idx % availableColors.size(); |
66 idx++; |
|
67 |
|
68 if (idx >= availableColors.size()) |
|
69 idx = 0; |
67 |
70 |
68 return availableColors.at(idx); |
71 return availableColors.at(idx); |
69 } |
72 } |
70 |
73 |
71 void FrameTeams::addTeam(HWTeam team, bool willPlay) |
74 void FrameTeams::addTeam(HWTeam team, bool willPlay) |