Difference for socket/item.c from version 1.28 to 1.29


version 1.28 version 1.29
Line 1
 
Line 1
   
 /*  /*
  * static char *rcsid_item_c =   * static char *rcsid_item_c =
  *    "$Id: item.c,v 1.28 2004/02/11 08:09:29 mwedel Exp $";   *    "$Id: item.c,v 1.29 2004/06/13 17:30:38 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 54
 
Line 54
  *   *
  ******************************************************************************/   ******************************************************************************/
   
 /** This is more or less stolen from the query_weight function. */  
 #define WEIGHT(op) (op->nrof?op->weight:op->weight+op->carrying)  
   
 /**  /**
  * Adds string to socklist.   * Adds string to socklist.
  *   *
Line 417
 
Line 414
     if (flags & UPD_FLAGS)      if (flags & UPD_FLAGS)
  SockList_AddInt(&sl, query_flags(op));   SockList_AddInt(&sl, query_flags(op));
   
     if (flags & UPD_WEIGHT)      if (flags & UPD_WEIGHT) {
  SockList_AddInt(&sl, WEIGHT(op));   sint32 weight = WEIGHT(op);
    SockList_AddInt(&sl, weight);
    if (pl == op) {
        op->contr->last_weight = weight;
    }
       }
   
     if (flags & UPD_FACE) {      if (flags & UPD_FACE) {
  if (!pl->contr->socket.faces_sent[op->face->number])   if (!pl->contr->socket.faces_sent[op->face->number])


Legend:
line(s) removed in v.1.28 
line(s) changed
 line(s) added in v.1.29

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:35