version 1.35 | | version 1.36 |
---|
| | |
/* | | /* |
* static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
* "$Id: shop.c,v 1.35 2005/04/14 06:12:57 mwedel Exp $"; | | * "$Id: shop.c,v 1.36 2005/07/10 13:54:07 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if(op!=NULL&&QUERY_FLAG(op,FLAG_UNPAID)) { | | if(op!=NULL&&QUERY_FLAG(op,FLAG_UNPAID)) { |
strncpy(buf,query_cost_string(op,pl,F_BUY),MAX_BUF); | | strncpy(buf,query_cost_string(op,pl,F_BUY),MAX_BUF); |
| | buf[MAX_BUF-1] = '\0'; |
if(!pay_for_item(op,pl)) { | | if(!pay_for_item(op,pl)) { |
uint64 i=query_cost(op,pl,F_BUY) - query_money(pl); | | uint64 i=query_cost(op,pl,F_BUY) - query_money(pl); |
CLEAR_FLAG(op, FLAG_UNPAID); | | CLEAR_FLAG(op, FLAG_UNPAID); |