src/player_gui.cpp
changeset 7932 6c3d71e8a129
parent 7931 b0a46cd92225
child 7934 c1b897797d7a
equal deleted inserted replaced
7931:b0a46cd92225 7932:6c3d71e8a129
   400 					if (e->we.click.pt.x < 10) {
   400 					if (e->we.click.pt.x < 10) {
   401 						DoCommandP(0, j | (2 << 8), !GetPlayer((PlayerID)w->window_number)->livery[j].in_use, NULL, CMD_SET_PLAYER_COLOR);
   401 						DoCommandP(0, j | (2 << 8), !GetPlayer((PlayerID)w->window_number)->livery[j].in_use, NULL, CMD_SET_PLAYER_COLOR);
   402 					}
   402 					}
   403 
   403 
   404 					if (_ctrl_pressed) {
   404 					if (_ctrl_pressed) {
   405 						TOGGLEBIT(WP(w, livery_d).sel, j);
   405 						ToggleBit(WP(w, livery_d).sel, j);
   406 					} else {
   406 					} else {
   407 						WP(w, livery_d).sel = 1 << j;
   407 						WP(w, livery_d).sel = 1 << j;
   408 					}
   408 					}
   409 					SetWindowDirty(w);
   409 					SetWindowDirty(w);
   410 					break;
   410 					break;