| version 1.5 | | version 1.6 |
|---|
| | |
| /* | | /* |
| * static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
| * "$Id: shop.c,v 1.5 2000/06/08 16:08:41 jec Exp $"; | | * "$Id: shop.c,v 1.6 2000/08/07 05:16:34 cvs Exp $"; |
| */ | | */ |
| | | |
| /* | | /* |
| CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | | |
| Copyright (C) 1994 Mark Wedel | | Copyright (C) 2000 Mark Wedel |
| Copyright (C) 1992 Frank Tore Johansen | | Copyright (C) 1992 Frank Tore Johansen |
| | | |
| This program is free software; you can redistribute it and/or modify | | This program is free software; you can redistribute it and/or modify |
| | |
| along with this program; if not, write to the Free Software | | along with this program; if not, write to the Free Software |
| Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| | | |
| The author can be reached via e-mail to master@rahul.net | | The author can be reached via e-mail to mwedel@scruz.net |
| | | |
| */ | | */ |
| | | |
| | |
| case BOOTS: | | case BOOTS: |
| case GLOVES: | | case GLOVES: |
| case GIRDLE: | | case GIRDLE: |
| sprintf(buf,"%s %s",query_base_name(tmp),describe_item(tmp)); | | sprintf(buf,"%s %s",query_base_name(tmp,0),describe_item(tmp)); |
| items[numitems].item_sort = strdup_local(buf); | | items[numitems].item_sort = strdup_local(buf); |
| sprintf(buf,"%s %s",query_name(tmp),describe_item(tmp)); | | sprintf(buf,"%s %s",query_name(tmp),describe_item(tmp)); |
| items[numitems++].item_real = strdup_local(buf); | | items[numitems++].item_real = strdup_local(buf); |
| break; | | break; |
| | | |
| default: | | default: |
| items[numitems].item_sort = strdup_local(query_base_name(tmp)); | | items[numitems].item_sort = strdup_local(query_base_name(tmp, 0)); |
| items[numitems++].item_real = strdup_local(query_name(tmp)); | | items[numitems++].item_real = strdup_local(query_name(tmp)); |
| break; | | break; |
| } | | } |