| version 1.37 | | version 1.38 |
|---|
| | |
| /* | | /* |
| * static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
| * "$Id: shop.c,v 1.37 2005/07/14 09:18:55 akirschbaum Exp $"; | | * "$Id: shop.c,v 1.38 2005/08/12 08:18:59 ryo_saeba Exp $"; |
| */ | | */ |
| | | |
| /* | | /* |
| | |
| * time is to add a higher denomination (mithril piece with | | * time is to add a higher denomination (mithril piece with |
| * 10,000 silver or something) | | * 10,000 silver or something) |
| */ | | */ |
| char *cost_string_from_value(uint64 cost) | | const char *cost_string_from_value(uint64 cost) |
| { | | { |
| static char buf[MAX_BUF]; | | static char buf[MAX_BUF]; |
| archetype *coin, *next_coin; | | archetype *coin, *next_coin; |
| | |
| return buf; | | return buf; |
| } | | } |
| | | |
| char *query_cost_string(object *tmp,object *who,int flag) { | | const char *query_cost_string(object *tmp,object *who,int flag) { |
| return cost_string_from_value(query_cost(tmp,who,flag)); | | return cost_string_from_value(query_cost(tmp,who,flag)); |
| } | | } |
| | | |