Difference for server/shop.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_shop_c =   * static char *rcsid_shop_c =
  *   "$Id: shop.c,v 1.2 1999/07/13 06:03:04 cvs Exp $";   *   "$Id: shop.c,v 1.3 1999/07/30 05:01:38 cvs Exp $";
  */   */
   
 /*  /*
Line 185
 
Line 185
           val=(4.0*(float)val*(1.0-diff));            val=(4.0*(float)val*(1.0-diff));
       else val *=4;        else val *=4;
   }    }
   if(val<0)  
     /* I don't understand this code...., I'm changing it to
      use 0 instead of 1000000 if we're selling*/
     if(val<0) {
    if(flag==F_SELL)
    val=0;
    else
     val=1000000;      val=1000000;
     }
   
     /* Unidentified stuff won't sell for more than 60gp */
     if(flag==F_SELL && !QUERY_FLAG(tmp, FLAG_IDENTIFIED) && need_identify(tmp)) {
    val = (val > 600)? 600:val;
     }
   return (int)val;    return (int)val;
 }  }
   


Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3

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