Difference for server/shop.c from version 1.46 to 1.47


version 1.46 version 1.47
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_shop_c =   * static char *rcsid_shop_c =
  *   "$Id: shop.c,v 1.46 2005/10/21 19:03:24 cavesomething Exp $";   *   "$Id: shop.c,v 1.47 2005/10/28 19:08:53 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 207
 
Line 207
      lev_bargain = find_skill_by_number(who,SK_BARGAINING)->level;       lev_bargain = find_skill_by_number(who,SK_BARGAINING)->level;
  }   }
  if (tmptype) {   if (tmptype) {
      if (idskill1=tmptype->identifyskill) {       idskill1=tmptype->identifyskill;
        if (idskill1) {
  idskill2=tmptype->identifyskill2;   idskill2=tmptype->identifyskill2;
  if (find_skill_by_number(who,idskill1)) {   if (find_skill_by_number(who,idskill1)) {
      lev_identify = find_skill_by_number(who,idskill1)->level;       lev_identify = find_skill_by_number(who,idskill1)->level;
Line 257
 
Line 258
      * we are selling objects - in that case, the person just       * we are selling objects - in that case, the person just
      * gets no money.       * gets no money.
      */       */
     if(val<0)      if((sint64)val<0)
  val=0;   val=0;
   
     /* Unidentified stuff won't sell for more than 60gp */      /* Unidentified stuff won't sell for more than 60gp */
Line 937
 
Line 938
     /*shopitems *items=map->shopitems;*/      /*shopitems *items=map->shopitems;*/
     int pos=0, i;      int pos=0, i;
     double opinion=0;      double opinion=0;
     char *p, tmp[MAX_BUF]="\0";      char tmp[MAX_BUF]="\0";
     if (op->type != PLAYER) return 0;      if (op->type != PLAYER) return 0;
   
     /*check if there is a shop specified for this map */      /*check if there is a shop specified for this map */


Legend:
line(s) removed in v.1.46 
line(s) changed
 line(s) added in v.1.47

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