version 1.23 | | version 1.24 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.23 2002/05/31 04:18:39 mwedel Exp $"; | | * "$Id: item.c,v 1.24 2002/06/01 05:38:07 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
SockList_AddShort(&sl,0); | | SockList_AddShort(&sl,0); |
SockList_AddChar(&sl, 0); | | SockList_AddChar(&sl, 0); |
SockList_AddInt(&sl, 0); | | SockList_AddInt(&sl, 0); |
| | if (pl->contr->socket.itemcmd == 2) |
| | SockList_AddShort(&sl, 0); |
} | | } |
| | |
for (last=NULL; tmp!=last; tmp=tmp->below) { | | for (last=NULL; tmp!=last; tmp=tmp->below) { |
| | |
if (++start_look < pl->contr->socket.look_position) continue; | | if (++start_look < pl->contr->socket.look_position) continue; |
end_look++; | | end_look++; |
if (end_look > NUM_LOOK_OBJECTS) { | | if (end_look > NUM_LOOK_OBJECTS) { |
| | /* What we basically do is make a 'fake' object - when the user applies it, |
| | * we notice the special tag the object has, and act accordingly. |
| | */ |
SockList_AddInt(&sl, 0x80000000 | (pl->contr->socket.look_position+ NUM_LOOK_OBJECTS)); | | SockList_AddInt(&sl, 0x80000000 | (pl->contr->socket.look_position+ NUM_LOOK_OBJECTS)); |
SockList_AddInt(&sl, 0); | | SockList_AddInt(&sl, 0); |
SockList_AddInt(&sl, -1); | | SockList_AddInt(&sl, -1); |
| | |
SockList_AddShort(&sl,0); | | SockList_AddShort(&sl,0); |
SockList_AddChar(&sl, 0); | | SockList_AddChar(&sl, 0); |
SockList_AddInt(&sl, 0); | | SockList_AddInt(&sl, 0); |
| | if (pl->contr->socket.itemcmd == 2) |
| | SockList_AddShort(&sl, 0); |
break; | | break; |
} | | } |
| | |