Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: patch for proper coloring of "damned" objects




Following is a patch (on top of my previous patch for invlock) that
colours damned objects in inventories and on the ground in the same
background color as the cursed ones.

BTW, what is the difference between cursed and damned?????

*** gx11.c.orig2	Thu Dec  3 16:57:06 1998
--- gx11.c	Thu Dec  3 16:53:55 1998
***************
*** 1996,2002 ****
  			    pixmaps[facecachemap[tmp->face]].gdkmask); 
        gtk_clist_set_row_data (GTK_CLIST(l->gtk_list[0]), tmprow, tmp);
        if (color_inv) { 
! 	if (tmp->cursed) {
  	  gtk_clist_set_background (GTK_CLIST(l->gtk_list[0]), tmprow,
  				    &root_color[NDI_RED]);
  	}
--- 1996,2002 ----
  			    pixmaps[facecachemap[tmp->face]].gdkmask); 
        gtk_clist_set_row_data (GTK_CLIST(l->gtk_list[0]), tmprow, tmp);
        if (color_inv) { 
! 	if (tmp->cursed || tmp->damned) {
  	  gtk_clist_set_background (GTK_CLIST(l->gtk_list[0]), tmprow,
  				    &root_color[NDI_RED]);
  	}
***************
*** 2004,2010 ****
  	  gtk_clist_set_background (GTK_CLIST(l->gtk_list[0]), tmprow,
  				    &root_color[NDI_BLUE]);
  	}
! 	if (tmp->cursed && tmp->magical) {
  	  gtk_clist_set_background (GTK_CLIST(l->gtk_list[0]), tmprow,
  				    &root_color[NDI_NAVY]);
  	}
--- 2004,2010 ----
  	  gtk_clist_set_background (GTK_CLIST(l->gtk_list[0]), tmprow,
  				    &root_color[NDI_BLUE]);
  	}
! 	if ((tmp->cursed || tmp->damned) && tmp->magical) {
  	  gtk_clist_set_background (GTK_CLIST(l->gtk_list[0]), tmprow,
  				    &root_color[NDI_NAVY]);
  	}

-- 
                                                         Maciej Kalisiak
"I like work ... I can sit and watch it              mac@dgp.utoronto.ca
for hours."                                        mac@elecom97.mail.net
                                               www.eecg.utoronto.ca/~mac