src/player_gui.cpp
changeset 9659 187142ff9b6c
parent 9652 0405e98d8e96
child 9762 5e591b9665a2
equal deleted inserted replaced
9658:f5c4d3c04b5d 9659:187142ff9b6c
   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++) {