version 1.32 | | version 1.33 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.32 2005/07/14 09:18:57 akirschbaum Exp $"; | | * "$Id: item.c,v 1.33 2005/08/12 13:47:00 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
object *tmp, *last; | | object *tmp, *last; |
int flags, got_one=0,anim_speed, start_look=0, end_look=0, len; | | int flags, got_one=0,anim_speed, start_look=0, end_look=0, len; |
SockList sl; | | SockList sl; |
char buf[MAX_BUF], *item_p,item_n[MAX_BUF]; | | char buf[MAX_BUF], item_n[MAX_BUF]; |
| | const char *item_p; |
| | |
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"); |
| | |
object *tmp; | | object *tmp; |
int flags, got_one=0, anim_speed, len; | | int flags, got_one=0, anim_speed, len; |
SockList sl; | | SockList sl; |
char item_n[MAX_BUF], *item_p; | | char item_n[MAX_BUF]; |
| | const char *item_p; |
| | |
sl.buf=malloc(MAXSOCKBUF); | | sl.buf=malloc(MAXSOCKBUF); |
| | |
| | |
} | | } |
if (flags & UPD_NAME) { | | if (flags & UPD_NAME) { |
int len; | | int len; |
char *item_p, item_n[MAX_BUF]; | | const char *item_p; |
| | char item_n[MAX_BUF]; |
| | |
if (!op->custom_name) { | | if (!op->custom_name) { |
strncpy(item_n,query_base_name(op, 0),127); | | strncpy(item_n,query_base_name(op, 0),127); |
| | |
{ | | { |
int anim_speed, len; | | int anim_speed, len; |
SockList sl; | | SockList sl; |
char item_n[MAX_BUF], *item_p; | | char item_n[MAX_BUF]; |
| | const char *item_p; |
| | |
/* 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) { |