ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/shop.c
(Generate patch)

Comparing deliantra/server/server/shop.c (file contents):
Revision 1.3 by pippijn, Wed May 24 01:51:09 2006 UTC vs.
Revision 1.4 by pippijn, Wed May 24 01:59:09 2006 UTC

1/* 1/*
2 * static char *rcsid_shop_c = 2 * static char *rcsid_shop_c =
3 * "$Id: shop.c,v 1.3 2006/05/24 01:51:09 pippijn Exp $"; 3 * "$Id: shop.c,v 1.4 2006/05/24 01:59:09 pippijn Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
680 } 680 }
681 if (has_coins == 0) { 681 if (has_coins == 0) {
682 strcat (buf, " have nothing to spend."); 682 strcat (buf, " have nothing to spend.");
683 new_draw_info(NDI_UNIQUE, 0, pl, buf); 683 new_draw_info(NDI_UNIQUE, 0, pl, buf);
684 return 0; 684 return 0;
685 } else {
686 strcat (buf, " only have");
685 } 687 }
686 for (i=0; i< NUM_COINS; i++) { 688 for (i=0; i< NUM_COINS; i++) {
687 if (coincount[i] > 0 && coins[i]) { 689 if (coincount[i] > 0 && coins[i]) {
688 denominations++; 690 denominations++;
691 if (coincount[i+1] == 0 || !coins[i+1]) {
689 sprintf(coinbuf, " %d %s,", coincount[i], find_archetype(coins[i])->clone.name_pl); 692 sprintf(coinbuf, " %d %s.", coincount[i], find_archetype(coins[i])->clone.name_pl);
693 } else {
694 sprintf(coinbuf, " %d %s,", coincount[i], find_archetype(coins[i])->clone.name_pl);
695 }
690 strcat (buf, coinbuf); 696 strcat (buf, coinbuf);
691 } 697 }
692 } 698 }
693 if (denominations > 1) make_list_like(buf); 699 if (denominations > 1) make_list_like(buf);
694 new_draw_info(NDI_UNIQUE, 0, pl, buf); 700 new_draw_info(NDI_UNIQUE, 0, pl, buf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines