main_gui.c
changeset 196 c4c33c0764a0
parent 193 0a7025304867
child 197 25749afe81ef
equal deleted inserted replaced
195:4554513bb73e 196:c4c33c0764a0
  1651 	case WE_PAINT: {
  1651 	case WE_PAINT: {
  1652 
  1652 
  1653 		// Draw brown-red toolbar bg.
  1653 		// Draw brown-red toolbar bg.
  1654 		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
  1654 		GfxFillRect(0, 0, w->width-1, w->height-1, 0xB2);
  1655 		GfxFillRect(0, 0, w->width-1, w->height-1, 0x80B4);
  1655 		GfxFillRect(0, 0, w->width-1, w->height-1, 0x80B4);
       
  1656 
       
  1657 		// if networking, disable fast-forward button
       
  1658 		if (_networking) w->disabled_state |= (1 << 1);
  1656 
  1659 
  1657 		// if spectator, disable things
  1660 		// if spectator, disable things
  1658 		if (_current_player == OWNER_SPECTATOR){
  1661 		if (_current_player == OWNER_SPECTATOR){
  1659 			w->disabled_state |= (1 << 0) | (1 << 19) | (1<<20) | (1<<21) | (1<<22) | (1<<23);
  1662 			w->disabled_state |= (1 << 0) | (1 << 19) | (1<<20) | (1<<21) | (1<<22) | (1<<23);
  1660 		} else {
  1663 		} else {