… | |
… | |
334 | */ |
334 | */ |
335 | void |
335 | void |
336 | esrv_draw_look (object *pl) |
336 | esrv_draw_look (object *pl) |
337 | { |
337 | { |
338 | int got_one = 0, start_look = 0, end_look = 0; |
338 | int got_one = 0, start_look = 0, end_look = 0; |
339 | char buf[MAX_BUF]; |
|
|
340 | |
339 | |
341 | if (!pl->contr->ns->update_look) |
340 | if (!pl->contr->ns->update_look) |
342 | { |
341 | { |
343 | LOG (llevDebug, "esrv_draw_look called when update_look was not set\n"); |
342 | LOG (llevDebug, "esrv_draw_look called when update_look was not set (player %s)\n", &pl->name); |
344 | return; |
343 | return; |
345 | } |
344 | } |
346 | else |
345 | else |
347 | pl->contr->ns->update_look = 0; |
346 | pl->contr->ns->update_look = 0; |
348 | |
347 | |
… | |
… | |
502 | * |
501 | * |
503 | * flags is a list of values to update |
502 | * flags is a list of values to update |
504 | * to the client (as defined in newclient.h - might as well use the |
503 | * to the client (as defined in newclient.h - might as well use the |
505 | * same value both places. |
504 | * same value both places. |
506 | */ |
505 | */ |
507 | |
|
|
508 | void |
506 | void |
509 | esrv_update_item (int flags, object *pl, object *op) |
507 | esrv_update_item (int flags, object *pl, object *op) |
510 | { |
508 | { |
511 | /* If we have a request to send the player item, skip a few checks. */ |
509 | /* If we have a request to send the player item, skip a few checks. */ |
512 | if (op != pl) |
510 | if (op != pl) |
… | |
… | |
670 | |
668 | |
671 | /** |
669 | /** |
672 | * Tells the client to delete an item. Uses the item |
670 | * Tells the client to delete an item. Uses the item |
673 | * command with a -1 location. |
671 | * command with a -1 location. |
674 | */ |
672 | */ |
675 | |
|
|
676 | void |
673 | void |
677 | esrv_del_item (player *pl, int tag) |
674 | esrv_del_item (player *pl, int tag) |
678 | { |
675 | { |
679 | if (!pl->ns) |
676 | if (!pl->ns) |
680 | return; |
677 | return; |