Difference for socket/item.c from version 1.37 to 1.38


version 1.37 version 1.38
Line 1
 
Line 1
   
 /*  /*
  * static char *rcsid_item_c =   * static char *rcsid_item_c =
  *    "$Id: item.c,v 1.37 2006/02/07 07:54:46 mwedel Exp $";   *    "$Id: item.c,v 1.38 2006/03/18 15:05:37 ryo_saeba Exp $";
  */   */
   
 /*  /*
Line 133
 
Line 133
     return flags;      return flags;
 }  }
   
 /* Used in the send_look to put object head into SockList  /**
    * Used in the send_look to put object head into SockList
  * sl for socket ns.  Need socket to know if we need to send   * sl for socket ns.  Need socket to know if we need to send
  * animation of face to the client.   * animation of face to the client.
  */   */
 static void add_object_to_socklist(NewSocket *ns, SockList *sl, object *head)  static void add_object_to_socklist(socket_struct *ns, SockList *sl, object *head)
 {  {
     int flags, len, anim_speed;      int flags, len, anim_speed;
     char item_n[MAX_BUF];      char item_n[MAX_BUF];
Line 569
 
Line 570
   
   
 /** Client wants to examine some object.  So lets do so. */  /** Client wants to examine some object.  So lets do so. */
 void ExamineCmd(char *buf, int len,player *pl)  void examine_cmd(char *buf, int len,player *pl)
 {  {
     long tag = atoi(buf);      long tag = atoi(buf);
     object *op = esrv_get_ob_from_count(pl->ob, tag);      object *op = esrv_get_ob_from_count(pl->ob, tag);
Line 583
 
Line 584
 }  }
   
 /** Client wants to apply some object.  Lets do so. */  /** Client wants to apply some object.  Lets do so. */
 void ApplyCmd(char *buf, int len,player *pl)  void apply_cmd(char *buf, int len,player *pl)
 {  {
     uint32 tag = atoi(buf);      uint32 tag = atoi(buf);
     object *op = esrv_get_ob_from_count(pl->ob, tag);      object *op = esrv_get_ob_from_count(pl->ob, tag);
Line 609
 
Line 610
 }  }
   
 /** Client wants to apply some object.  Lets do so. */  /** Client wants to apply some object.  Lets do so. */
 void LockItem(uint8 *data, int len,player *pl)  void lock_item_cmd(uint8 *data, int len,player *pl)
 {  {
     int flag, tag;      int flag, tag;
     object *op;      object *op;
Line 630
 
Line 631
 }  }
   
 /** Client wants to apply some object.  Lets do so. */  /** Client wants to apply some object.  Lets do so. */
 void MarkItem(uint8 *data, int len,player *pl)  void mark_item_cmd(uint8 *data, int len,player *pl)
 {  {
     int tag;      int tag;
     object *op;      object *op;
Line 648
 
Line 649
   
   
 /**  /**
  * look_at prints items on the specified square.   * Prints items on the specified square.
  *   *
  * [ removed EARTHWALL check and added check for containers inventory.   * [ removed EARTHWALL check and added check for containers inventory.
  *   Tero.Haatanen@lut.fi ]   *   Tero.Haatanen@lut.fi ]
Line 708
 
Line 709
   
   
 /** Client wants to look at some object.  Lets do so. */  /** Client wants to look at some object.  Lets do so. */
 void LookAt(char *buf, int len,player *pl)  void look_at_cmd(char *buf, int len,player *pl)
 {  {
     int dx, dy;      int dx, dy;
     char *cp;      char *cp;


Legend:
line(s) removed in v.1.37 
line(s) changed
 line(s) added in v.1.38

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:35