Difference for common/object.c from version 1.108 to 1.109


version 1.108 version 1.109
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: object.c,v 1.108 2005/10/18 16:54:30 gros Exp $";   *   "$Id: object.c,v 1.109 2005/10/28 19:08:53 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 231
 
Line 231
   for(sum = 0, inv = op->inv; inv != NULL; inv = inv->below) {    for(sum = 0, inv = op->inv; inv != NULL; inv = inv->below) {
     if (inv->inv)      if (inv->inv)
  sum_weight(inv);   sum_weight(inv);
     sum += inv->carrying + (inv->nrof ? inv->weight * inv->nrof : inv->weight);      sum += inv->carrying + inv->weight * (inv->nrof ? inv->nrof : 1);
   }    }
   if (op->type == CONTAINER && op->stats.Str)    if (op->type == CONTAINER && op->stats.Str)
     sum = (sum * (100 - op->stats.Str))/100;      sum = (sum * (100 - op->stats.Str))/100;


Legend:
line(s) removed in v.1.108 
line(s) changed
 line(s) added in v.1.109

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