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

CF: patch: remove the annoying "a" -:)



Hi,

ever got upset by your inventory being cluttered with
"a" Dragonbane
"a" mithril chainmail of winter
"a" ring of Elrond
"a" ring of Power
"a" ...
"a" ... 
153 healing potions
... ??

Here is the solution -:) Get rid of the stupid "a" -:)

You'll still have to drop those healing potions yourself, though -:)
(things like this are the reason why I'm thinking about checking
INV_LOCK in CAN_MERGE()).

SCNR,
  Christian

------------------------------ Cut ------------------------------

diff -r -C 5 y/crossfire-0.93.7/common/item.c crossfire/common/item.c
*** y/crossfire-0.93.7/common/item.c	Tue Jan  6 10:29:18 1998
--- crossfire/common/item.c	Mon Jan 12 14:44:02 1998
***************
*** 206,216 ****
  
      if(op->name == NULL)
  	return "(null)";
      if(!op->nrof && !op->weight && !op->title && !is_magical(op)) 
  	return op->name; /* To speed things up (or make things slower?) */
!     if(op->nrof) {
  	strcpy(buf, get_number(op->nrof));
  
  	/* if nrof==1, then get_number returns 'a'. Add an 'n' if appropriate*/
  	if(op->nrof==1&&QUERY_FLAG(op,FLAG_AN))
  	    strcat(buf,"n");
--- 206,216 ----
  
      if(op->name == NULL)
  	return "(null)";
      if(!op->nrof && !op->weight && !op->title && !is_magical(op)) 
  	return op->name; /* To speed things up (or make things slower?) */
!     if(op->nrof>1) {
  	strcpy(buf, get_number(op->nrof));
  
  	/* if nrof==1, then get_number returns 'a'. Add an 'n' if appropriate*/
  	if(op->nrof==1&&QUERY_FLAG(op,FLAG_AN))
  	    strcat(buf,"n");
[to unsubscribe etc., send mail to crossfire-request@ifi.uio.no]