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.12 by root, Mon Sep 11 23:33:30 2006 UTC vs.
Revision 1.13 by root, Tue Sep 12 01:09:54 2006 UTC

1 1
2/* 2/*
3 * static char *rcsid_shop_c = 3 * static char *rcsid_shop_c =
4 * "$Id: shop.C,v 1.12 2006/09/11 23:33:30 root Exp $"; 4 * "$Id: shop.C,v 1.13 2006/09/12 01:09:54 root Exp $";
5 */ 5 */
6 6
7/* 7/*
8 CrossFire, A Multiplayer game for X-windows 8 CrossFire, A Multiplayer game for X-windows
9 9
692 { 692 {
693 LOG (llevError, "can_pay(): called against something that isn't a player\n"); 693 LOG (llevError, "can_pay(): called against something that isn't a player\n");
694 return 0; 694 return 0;
695 } 695 }
696 696
697 for (object::deep_iterator item = pl->begin (); item != pl->end (); ++item) 697 for (object::depth_iterator item = pl->begin (); item != pl->end (); ++item)
698 if (QUERY_FLAG (item, FLAG_UNPAID)) 698 if (QUERY_FLAG (item, FLAG_UNPAID))
699 { 699 {
700 unpaid_count++; 700 unpaid_count++;
701 unpaid_price += query_cost (item, pl, F_BUY | F_SHOP); 701 unpaid_price += query_cost (item, pl, F_BUY | F_SHOP);
702 } 702 }
731{ 731{
732 for (;;) 732 for (;;)
733 { 733 {
734 next_item: 734 next_item:
735 735
736 for (object::deep_iterator op = pl->begin (); op != pl->end (); ++op) 736 for (object::depth_iterator op = pl->begin (); op != pl->end (); ++op)
737 { 737 {
738 if (QUERY_FLAG (op, FLAG_UNPAID)) 738 if (QUERY_FLAG (op, FLAG_UNPAID))
739 { 739 {
740 char buf[MAX_BUF]; 740 char buf[MAX_BUF];
741 snprintf (buf, MAX_BUF, "%s", query_cost_string (op, pl, F_BUY | F_SHOP)); 741 snprintf (buf, MAX_BUF, "%s", query_cost_string (op, pl, F_BUY | F_SHOP));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines