Difference for server/c_object.c from version 1.88 to 1.89


version 1.88 version 1.89
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_object_c =   * static char *rcsid_c_object_c =
  *   "$Id: c_object.c,v 1.88 2006/09/09 20:31:31 qal21 Exp $";   *   "$Id: c_object.c,v 1.89 2006/09/10 00:04:35 qal21 Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 992
 
Line 992
   
   
     if ( !QUERY_FLAG(tmp, FLAG_UNPAID) && tmp->type != MONEY ) {      if ( !QUERY_FLAG(tmp, FLAG_UNPAID) && tmp->type != MONEY ) {
         floor = get_map_ob (op->map, op->x, op->y);          if (is_in_shop(op))
         while ( floor && floor->type != SHOP_FLOOR )  
             floor = floor->above;  
         if ( floor )  
             sell_item(tmp,op);              sell_item(tmp,op);
     }      }
   
Line 1427
 
Line 1424
   
 void examine(object *op, object *tmp) {  void examine(object *op, object *tmp) {
     char buf[VERY_BIG_BUF];      char buf[VERY_BIG_BUF];
       int in_shop;
     int i;      int i;
   
     if (tmp == NULL || tmp->type == CLOSE_CON)      if (tmp == NULL || tmp->type == CLOSE_CON)
Line 1512
 
Line 1510
  new_draw_info(NDI_UNIQUE, 0,op,buf);   new_draw_info(NDI_UNIQUE, 0,op,buf);
     }      }
   
       in_shop = is_in_shop(op);
   
     if (tmp->value && !QUERY_FLAG(tmp, FLAG_STARTEQUIP) && !QUERY_FLAG(tmp, FLAG_NO_PICK)) {      if (tmp->value && !QUERY_FLAG(tmp, FLAG_STARTEQUIP) && !QUERY_FLAG(tmp, FLAG_NO_PICK)) {
     object *floor;  
     sprintf(buf,"You reckon %s worth %s.",      sprintf(buf,"You reckon %s worth %s.",
      tmp->nrof>1?"they are":"it is",query_cost_string(tmp,op,F_SELL | F_APPROX));       tmp->nrof>1?"they are":"it is",query_cost_string(tmp,op,F_SELL | F_APPROX));
  new_draw_info(NDI_UNIQUE, 0,op,buf);   new_draw_info(NDI_UNIQUE, 0,op,buf);
  floor = get_map_ob (op->map, op->x, op->y);   if (in_shop) {
  if (floor && floor->type == SHOP_FLOOR) {  
      if(QUERY_FLAG(tmp, FLAG_UNPAID))       if(QUERY_FLAG(tmp, FLAG_UNPAID))
      sprintf(buf,"%s would cost you %s.",       sprintf(buf,"%s would cost you %s.",
      tmp->nrof>1?"They":"It",query_cost_string(tmp,op,F_BUY | F_SHOP));       tmp->nrof>1?"They":"It",query_cost_string(tmp,op,F_BUY | F_SHOP));


Legend:
line(s) removed in v.1.88 
line(s) changed
 line(s) added in v.1.89

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:27