version 1.28 | | version 1.29 |
---|
| | |
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* | | * |
******************************************************************************/ | | ******************************************************************************/ |
| | |
/** 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. |
* | | * |
| | |
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]) |