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

CF: patch to GTK client (0.95.1) to get item status strings




This tiny patch enables the appending of the "status/flags" string to
inventory items (a la X11 client). It seems the code so far was
appending them to the wrong buffer...

*** gx11.c.orig	Wed Dec  9 13:44:59 1998
--- gx11.c	Wed Dec  9 13:46:35 1998
***************
*** 1972,1982 ****
    for(tmp = l->env->inv; tmp ; tmp=tmp->next) {      
  
      
-     if (l->show_icon == 0)
-       strcat (buf2, tmp->flags);
-     
      strcpy (buffer[0]," "); 
      strcpy (buffer[1], tmp->name);
      
      if(tmp->weight < 0 || l->show_weight == 0) {
        strcpy (buffer[2]," "); 
--- 1972,1982 ----
    for(tmp = l->env->inv; tmp ; tmp=tmp->next) {      
  
      
      strcpy (buffer[0]," "); 
      strcpy (buffer[1], tmp->name);
+ 
+     if (l->show_icon == 0)
+       strcat (buffer[1], tmp->flags);
      
      if(tmp->weight < 0 || l->show_weight == 0) {
        strcpy (buffer[2]," "); 

-- 
Shaw's Principle:                                        Maciej Kalisiak
Build a system that even a fool can use,             
and only a fool will want to use it.               
                                               www.eecg.utoronto.ca/~mac