Difference for server/skills.c from version 1.61 to 1.62


version 1.61 version 1.62
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_skills_c =   * static char *rcsid_skills_c =
  *   "$Id: skills.c,v 1.61 2005/07/27 17:54:54 ryo_saeba Exp $";   *   "$Id: skills.c,v 1.62 2005/08/12 08:18:59 ryo_saeba Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 1076
 
Line 1076
  * ordinary 'books' (anything that is type BOOK). b.t.   * ordinary 'books' (anything that is type BOOK). b.t.
  */   */
   
 static int write_note(object *pl, object *item, char *msg, object *skill) {  static int write_note(object *pl, object *item, const char *msg, object *skill) {
     char buf[BOOK_BUF];       char buf[BOOK_BUF];
     object *newBook = NULL;      object *newBook = NULL;
     event *evt;      event *evt;
Line 1107
 
Line 1107
  CFP.Value[1] = pl;   CFP.Value[1] = pl;
  CFP.Value[2] = item;   CFP.Value[2] = item;
  CFP.Value[3] = NULL;   CFP.Value[3] = NULL;
  CFP.Value[4] = msg;   CFP.Value[4] = ( void* )msg;
  CFP.Value[5] = &n;   CFP.Value[5] = &n;
  CFP.Value[6] = &m;   CFP.Value[6] = &m;
  CFP.Value[7] = &m;   CFP.Value[7] = &m;
Line 1278
 
Line 1278
 }  }
   
 /* write_on_item() - wrapper for write_note and write_scroll */  /* write_on_item() - wrapper for write_note and write_scroll */
 int write_on_item (object *pl,char *params, object *skill) {  int write_on_item (object *pl,const char *params, object *skill) {
     object *item;      object *item;
     char *string=params;      const char *string=params;
     int msgtype;      int msgtype;
     archetype *skat;      archetype *skat;
   
Line 1340
 
Line 1340
  * 'throwable' (ie not applied cursed obj, worn, etc).   * 'throwable' (ie not applied cursed obj, worn, etc).
  */   */
   
 static object *find_throw_ob( object *op, char *request ) {  static object *find_throw_ob( object *op, const char *request ) {
     object *tmp;      object *tmp;
         
     if(!op) { /* safety */      if(!op) { /* safety */
Line 1682
 
Line 1682
     return 1;      return 1;
 }  }
   
 int skill_throw (object *op, object *part, int dir, char *params, object *skill) {  int skill_throw (object *op, object *part, int dir, const char *params, object *skill) {
     object *throw_ob;      object *throw_ob;
   
     if(op->type==PLAYER)       if(op->type==PLAYER)


Legend:
line(s) removed in v.1.61 
line(s) changed
 line(s) added in v.1.62

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:46