version 1.8 | | version 1.9 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.8 2000/11/08 07:19:37 cvs Exp $"; | | * "$Id: item.c,v 1.9 2000/11/14 07:35:06 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
void esrv_draw_look(object *pl) | | void esrv_draw_look(object *pl) |
{ | | { |
object *tmp, *last; | | object *tmp, *last; |
int flags, got_one=0,len,anim_speed; | | int flags, got_one=0,anim_speed; |
SockList sl; | | SockList sl; |
char *buf; | | |
| | |
if (!pl->contr->socket.update_look) { | | if (!pl->contr->socket.update_look) { |
LOG(llevDebug,"esrv_draw_look called when update_look was not set\n"); | | LOG(llevDebug,"esrv_draw_look called when update_look was not set\n"); |
| | |
void esrv_send_inventory(object *pl, object *op) | | void esrv_send_inventory(object *pl, object *op) |
{ | | { |
object *tmp; | | object *tmp; |
int flags, got_one=0, anim_speed,len; | | int flags, got_one=0, anim_speed; |
SockList sl; | | SockList sl; |
char *buf, item_n[MAX_BUF]; | | char item_n[MAX_BUF]; |
| | |
sl.buf=malloc(MAXSOCKBUF); | | sl.buf=malloc(MAXSOCKBUF); |
| | |
| | |
void esrv_update_item(int flags, object *pl, object *op) | | void esrv_update_item(int flags, object *pl, object *op) |
{ | | { |
SockList sl; | | SockList sl; |
char *buf; | | |
| | |
/* If we have a request to send the player item, skip a few checks. */ | | /* If we have a request to send the player item, skip a few checks. */ |
if (op!=pl) { | | if (op!=pl) { |
| | |
| | |
void esrv_send_item(object *pl, object*op) | | void esrv_send_item(object *pl, object*op) |
{ | | { |
int anim_speed,len; | | int anim_speed; |
SockList sl; | | SockList sl; |
char *buf, item_n[MAX_BUF]; | | char item_n[MAX_BUF]; |
| | |
/* If this is not the player object, do some more checks */ | | /* If this is not the player object, do some more checks */ |
if (op!=pl) { | | if (op!=pl) { |