Difference for server/apply.c from version 1.114 to 1.115


version 1.114 version 1.115
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_apply_c =   * static char *rcsid_apply_c =
  *   "$Id: apply.c,v 1.114 2004/10/18 06:54:36 mwedel Exp $";   *   "$Id: apply.c,v 1.115 2004/12/29 08:45:07 mwedel Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 1137
 
Line 1137
      }       }
  }   }
   
  if (QUERY_FLAG(op, FLAG_UNPAID)) {   /* Don't teleport things like spell effects */
    if (QUERY_FLAG(op, FLAG_NO_PICK)) return 0;
   
    /* unpaid objects, or non living objects, can't transfer by
    * shop mats.  Instead, put it on a nearby space.
    */
    if (QUERY_FLAG(op, FLAG_UNPAID) || !QUERY_FLAG(op, FLAG_ALIVE)) {
   
      /* Somebody dropped an unpaid item, just move to an adjacent place. */       /* Somebody dropped an unpaid item, just move to an adjacent place. */
      int i = find_free_spot (op->arch, op->map, op->x, op->y, 1, 9);       int i = find_free_spot (op->arch, op->map, op->x, op->y, 1, 9);
Line 1145
 
Line 1151
  rv = transfer_ob (op, op->x + freearr_x[i], op->y + freearr_y[i], 0,   rv = transfer_ob (op, op->x + freearr_x[i], op->y + freearr_y[i], 0,
                        shop_mat);                         shop_mat);
      }       }
        return 0;
  }   }
  /* Don't teleport things like spell effects */  
  if (QUERY_FLAG(op, FLAG_NO_PICK)) return 0;  
   
  /* Removed code that checked for multipart objects - it appears that   /* Removed code that checked for multipart objects - it appears that
  * the teleport function should be able to handle this just fine.   * the teleport function should be able to handle this just fine.
  */   */


Legend:
line(s) removed in v.1.114 
line(s) changed
 line(s) added in v.1.115

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