… | |
… | |
229 | if (!(pl->contr->socket->faces_sent[empty_face->number] & NS_FACESENT_FACE)) |
229 | if (!(pl->contr->socket->faces_sent[empty_face->number] & NS_FACESENT_FACE)) |
230 | esrv_send_face (pl->contr->socket, empty_face->number, 0); |
230 | esrv_send_face (pl->contr->socket, empty_face->number, 0); |
231 | |
231 | |
232 | if (pl->contr->socket->look_position) |
232 | if (pl->contr->socket->look_position) |
233 | { |
233 | { |
|
|
234 | char buf[80]; |
|
|
235 | snprintf (buf, 80, "Apply this to see %d previous items", NUM_LOOK_OBJECTS); |
|
|
236 | |
234 | sl << uint32 (0x80000000 | (pl->contr->socket->look_position - NUM_LOOK_OBJECTS)) |
237 | sl << uint32 (0x80000000 | (pl->contr->socket->look_position - NUM_LOOK_OBJECTS)) |
235 | << uint32 (0) |
238 | << uint32 (0) |
236 | << sint32 (-1) |
239 | << sint32 (-1) |
237 | << uint32 (empty_face->number); |
240 | << uint32 (empty_face->number) |
238 | |
241 | << data8 (buf) |
239 | sl.printf ("Click here to see %d previous items", NUM_LOOK_OBJECTS); |
|
|
240 | |
|
|
241 | sl << uint16 (0) |
242 | << uint16 (0) |
242 | << uint8 (0) |
243 | << uint8 (0) |
243 | << uint32 (0); |
244 | << uint32 (0); |
244 | |
245 | |
245 | if (pl->contr->socket->itemcmd == 2) |
246 | if (pl->contr->socket->itemcmd == 2) |
246 | sl << uint16 (0); |
247 | sl << uint16 (0); |
… | |
… | |
270 | * we notice the special tag the object has, and act accordingly. |
271 | * we notice the special tag the object has, and act accordingly. |
271 | */ |
272 | */ |
272 | sl << uint32 (0x80000000 | (pl->contr->socket->look_position + NUM_LOOK_OBJECTS)) |
273 | sl << uint32 (0x80000000 | (pl->contr->socket->look_position + NUM_LOOK_OBJECTS)) |
273 | << uint32 (0) |
274 | << uint32 (0) |
274 | << uint32 ((uint32) - 1) |
275 | << uint32 ((uint32) - 1) |
275 | << uint32 (empty_face->number); |
276 | << uint32 (empty_face->number) |
276 | |
277 | << data8 ("Apply this to see next group of items") |
277 | sl.printf ("Click here to see next group of items"); |
|
|
278 | |
|
|
279 | sl << uint16 (0) |
278 | << uint16 (0) |
280 | << uint8 (0) |
279 | << uint8 (0) |
281 | << uint32 (0); |
280 | << uint32 (0); |
282 | |
281 | |
283 | if (pl->contr->socket->itemcmd == 2) |
282 | if (pl->contr->socket->itemcmd == 2) |
284 | sl << uint16 (0); |
283 | sl << uint16 (0); |