version 1.20 | | version 1.21 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.20 2001/11/27 04:33:46 michtoen Exp $"; | | * "$Id: item.c,v 1.21 2001/12/23 08:17:36 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
SockList_AddInt(&sl, 0); | | SockList_AddInt(&sl, 0); |
SockList_AddInt(&sl, -1); | | SockList_AddInt(&sl, -1); |
SockList_AddInt(&sl, empty_face->number); | | SockList_AddInt(&sl, empty_face->number); |
if(pl->contr->socket.ext2) | | |
{ | | |
SockList_AddChar(&sl, 0); | | |
SockList_AddChar(&sl, 0); | | |
} | | |
sprintf(buf,"Click here to see %d previous items", NUM_LOOK_OBJECTS); | | sprintf(buf,"Click here to see %d previous items", NUM_LOOK_OBJECTS); |
add_stringlen_to_sockbuf(buf, &sl); | | add_stringlen_to_sockbuf(buf, &sl); |
SockList_AddShort(&sl,0); | | SockList_AddShort(&sl,0); |
| | |
SockList_AddInt(&sl, 0); | | SockList_AddInt(&sl, 0); |
SockList_AddInt(&sl, -1); | | SockList_AddInt(&sl, -1); |
SockList_AddInt(&sl, empty_face->number); | | SockList_AddInt(&sl, empty_face->number); |
if(pl->contr->socket.ext2) | | |
{ | | |
SockList_AddChar(&sl, 0); | | |
SockList_AddChar(&sl, 0); | | |
} | | |
sprintf(buf,"Click here to see next group of items"); | | sprintf(buf,"Click here to see next group of items"); |
add_stringlen_to_sockbuf(buf, &sl); | | add_stringlen_to_sockbuf(buf, &sl); |
SockList_AddShort(&sl,0); | | SockList_AddShort(&sl,0); |
| | |
SockList_AddInt(&sl, flags); | | SockList_AddInt(&sl, flags); |
SockList_AddInt(&sl, QUERY_FLAG(tmp, FLAG_NO_PICK) ? -1 : WEIGHT(tmp)); | | SockList_AddInt(&sl, QUERY_FLAG(tmp, FLAG_NO_PICK) ? -1 : WEIGHT(tmp)); |
SockList_AddInt(&sl, tmp->face->number); | | SockList_AddInt(&sl, tmp->face->number); |
if(pl->contr->socket.ext2) | | |
{ | | |
SockList_AddChar(&sl, tmp->type); | | |
SockList_AddChar(&sl, tmp->sub_type1); | | |
} | | |
if (pl->contr->socket.sc_version>=1024) { | | if (pl->contr->socket.sc_version>=1024) { |
int len; | | int len; |
char *item_p,item_n[MAX_BUF]; | | char *item_p,item_n[MAX_BUF]; |
| | |
SockList_AddInt(&sl, flags); | | SockList_AddInt(&sl, flags); |
SockList_AddInt(&sl, QUERY_FLAG(tmp, FLAG_NO_PICK) ? -1 : WEIGHT(tmp)); | | SockList_AddInt(&sl, QUERY_FLAG(tmp, FLAG_NO_PICK) ? -1 : WEIGHT(tmp)); |
SockList_AddInt(&sl, tmp->face->number); | | SockList_AddInt(&sl, tmp->face->number); |
if(pl->contr->socket.ext2) | | |
{ | | |
SockList_AddChar(&sl, tmp->type); | | |
SockList_AddChar(&sl, tmp->sub_type1); | | |
} | | |
| | |
if (pl->contr->socket.sc_version>=1024) { | | if (pl->contr->socket.sc_version>=1024) { |
int len; | | int len; |
| | |
SockList_AddInt(&sl, query_flags(op)); | | SockList_AddInt(&sl, query_flags(op)); |
SockList_AddInt(&sl, WEIGHT(op)); | | SockList_AddInt(&sl, WEIGHT(op)); |
SockList_AddInt(&sl, op->face->number); | | SockList_AddInt(&sl, op->face->number); |
if(pl->contr->socket.ext2) | | |
{ | | |
SockList_AddChar(&sl, op->type); | | |
SockList_AddChar(&sl, op->sub_type1); | | |
} | | |
| | |
if (pl->contr->socket.sc_version>=1024) { | | if (pl->contr->socket.sc_version>=1024) { |
int len; | | int len; |