version 1.29 | | version 1.30 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.29 2004/06/13 17:30:38 akirschbaum Exp $"; | | * "$Id: item.c,v 1.30 2005/03/19 09:14:57 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
SockList_AddInt(&sl, 0); | | SockList_AddInt(&sl, 0); |
| | |
if (!pl->contr->socket.faces_sent[empty_face->number]) | | if (!(pl->contr->socket.faces_sent[empty_face->number]&NS_FACESENT_FACE)) |
esrv_send_face(&pl->contr->socket, empty_face->number,0); | | esrv_send_face(&pl->contr->socket, empty_face->number,0); |
| | |
if (pl->contr->socket.look_position) { | | if (pl->contr->socket.look_position) { |
| | |
flags = query_flags (tmp); | | flags = query_flags (tmp); |
if (QUERY_FLAG(tmp, FLAG_NO_PICK)) | | if (QUERY_FLAG(tmp, FLAG_NO_PICK)) |
flags |= F_NOPICK; | | flags |= F_NOPICK; |
if (!pl->contr->socket.faces_sent[tmp->face->number]) | | if (!(pl->contr->socket.faces_sent[tmp->face->number] & NS_FACESENT_FACE)) |
esrv_send_face(&pl->contr->socket, tmp->face->number,0); | | esrv_send_face(&pl->contr->socket, tmp->face->number,0); |
| | |
if (QUERY_FLAG(tmp,FLAG_ANIMATE) && | | if (QUERY_FLAG(tmp,FLAG_ANIMATE) && |
| | |
flags = query_flags (tmp); | | flags = query_flags (tmp); |
if (QUERY_FLAG(tmp, FLAG_NO_PICK)) | | if (QUERY_FLAG(tmp, FLAG_NO_PICK)) |
flags |= F_NOPICK; | | flags |= F_NOPICK; |
if (!pl->contr->socket.faces_sent[tmp->face->number]) | | if (!(pl->contr->socket.faces_sent[tmp->face->number] & NS_FACESENT_FACE)) |
esrv_send_face(&pl->contr->socket, tmp->face->number,0); | | esrv_send_face(&pl->contr->socket, tmp->face->number,0); |
if (QUERY_FLAG(tmp,FLAG_ANIMATE) && | | if (QUERY_FLAG(tmp,FLAG_ANIMATE) && |
!pl->contr->socket.anims_sent[tmp->animation_id]) | | !pl->contr->socket.anims_sent[tmp->animation_id]) |
| | |
} | | } |
| | |
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] & NS_FACESENT_FACE)) |
esrv_send_face(&pl->contr->socket, op->face->number,0); | | esrv_send_face(&pl->contr->socket, op->face->number,0); |
SockList_AddInt(&sl, op->face->number); | | SockList_AddInt(&sl, op->face->number); |
} | | } |
| | |
| | |
SockList_AddInt(&sl, op->env? op->env->count:0); | | SockList_AddInt(&sl, op->env? op->env->count:0); |
| | |
if (!pl->contr->socket.faces_sent[op->face->number]) | | if (!(pl->contr->socket.faces_sent[op->face->number] & NS_FACESENT_FACE)) |
esrv_send_face(&pl->contr->socket, op->face->number,0); | | esrv_send_face(&pl->contr->socket, op->face->number,0); |
if (op->env && QUERY_FLAG(op,FLAG_ANIMATE) && | | if (op->env && QUERY_FLAG(op,FLAG_ANIMATE) && |
!pl->contr->socket.anims_sent[op->animation_id]) | | !pl->contr->socket.anims_sent[op->animation_id]) |