equal
deleted
inserted
replaced
344 |
344 |
345 /* Disallow other player colours for the primary colour */ |
345 /* Disallow other player colours for the primary colour */ |
346 if (HasBit(this->sel, LS_DEFAULT) && widget == PLW_WIDGET_PRI_COL_DROPDOWN) { |
346 if (HasBit(this->sel, LS_DEFAULT) && widget == PLW_WIDGET_PRI_COL_DROPDOWN) { |
347 const Player *p; |
347 const Player *p; |
348 FOR_ALL_PLAYERS(p) { |
348 FOR_ALL_PLAYERS(p) { |
349 if (p->is_active && p->index != _local_player) SetBit(used_colours, p->player_color); |
349 if (p->index != _local_player) SetBit(used_colours, p->player_color); |
350 } |
350 } |
351 } |
351 } |
352 |
352 |
353 /* Get the first selected livery to use as the default dropdown item */ |
353 /* Get the first selected livery to use as the default dropdown item */ |
354 for (scheme = LS_BEGIN; scheme < LS_END; scheme++) { |
354 for (scheme = LS_BEGIN; scheme < LS_END; scheme++) { |