ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/item.C
(Generate patch)

Comparing deliantra/server/socket/item.C (file contents):
Revision 1.36 by root, Sun Feb 4 17:51:12 2007 UTC vs.
Revision 1.39 by root, Mon Feb 26 20:36:15 2007 UTC

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]; 339 char buf[MAX_BUF];
340 340
341 if (!pl->contr->ns->update_look) 341 if (!pl->contr->ns->update_look)
342 { 342 {
343 LOG (llevDebug, "esrv_draw_look called when update_look was not set\n"); 343 LOG (llevDebug, "esrv_draw_look called when update_look was not set (player %s)\n", &pl->name);
344 return; 344 return;
345 } 345 }
346 else 346 else
347 pl->contr->ns->update_look = 0; 347 pl->contr->ns->update_look = 0;
348 348
502 * 502 *
503 * flags is a list of values to update 503 * flags is a list of values to update
504 * to the client (as defined in newclient.h - might as well use the 504 * to the client (as defined in newclient.h - might as well use the
505 * same value both places. 505 * same value both places.
506 */ 506 */
507
508void 507void
509esrv_update_item (int flags, object *pl, object *op) 508esrv_update_item (int flags, object *pl, object *op)
510{ 509{
511 /* If we have a request to send the player item, skip a few checks. */ 510 /* If we have a request to send the player item, skip a few checks. */
512 if (op != pl) 511 if (op != pl)
670 669
671/** 670/**
672 * Tells the client to delete an item. Uses the item 671 * Tells the client to delete an item. Uses the item
673 * command with a -1 location. 672 * command with a -1 location.
674 */ 673 */
675
676void 674void
677esrv_del_item (player *pl, int tag) 675esrv_del_item (player *pl, int tag)
678{ 676{
679 if (!pl->ns) 677 if (!pl->ns)
680 return; 678 return;
882 else 880 else
883 new_draw_info (NDI_UNIQUE, 0, op, "You see nothing."); 881 new_draw_info (NDI_UNIQUE, 0, op, "You see nothing.");
884 } 882 }
885} 883}
886 884
887
888
889/** Client wants to look at some object. Lets do so. */ 885/** Client wants to look at some object. Lets do so. */
890void 886void
891LookAt (char *buf, int len, player *pl) 887LookAt (char *buf, int len, player *pl)
892{ 888{
893 int dx, dy; 889 int dx, dy;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines