Difference for server/player.c from version 1.181 to 1.182


version 1.181 version 1.182
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.181 2005/10/28 18:19:53 akirschbaum Exp $";   *   "$Id: player.c,v 1.182 2005/10/28 19:08:53 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 373
 
Line 373
     object *op = NULL;      object *op = NULL;
     player *pl = NULL;      player *pl = NULL;
     objectlink *ol;      objectlink *ol;
     int lastdist;      unsigned lastdist;
     rv_vector rv;      rv_vector rv;
   
     for(ol=first_friendly_object,lastdist=1000;ol!=NULL;ol=ol->next) {      for(ol=first_friendly_object,lastdist=1000;ol!=NULL;ol=ol->next) {
Line 468
 
Line 468
  * since only simple checks to blocked are being called, which could mean the monster   * since only simple checks to blocked are being called, which could mean the monster
  * is blocking itself.   * is blocking itself.
  */   */
 int path_to_player(object *mon, object *pl,int mindiff) {  int path_to_player(object *mon, object *pl, unsigned mindiff) {
     rv_vector rv;      rv_vector rv;
     sint16  x,y;      sint16  x,y;
     int lastx,lasty,dir,i,diff, firstdir=0,lastdir, max=MAX_SPACES, mflags;      int lastx,lasty,dir,i,diff, firstdir=0,lastdir, max=MAX_SPACES, mflags;
Line 1644
 
Line 1644
     arrow->stats.hp = arrow->stats.dam;       arrow->stats.hp = arrow->stats.dam;
     arrow->stats.grace = arrow->attacktype;      arrow->stats.grace = arrow->attacktype;
     if (arrow->slaying != NULL)      if (arrow->slaying != NULL)
  arrow->spellarg = strdup(arrow->slaying);   arrow->spellarg = strdup_local(arrow->slaying);
   
     /* Note that this was different for monsters - they got their level      /* Note that this was different for monsters - they got their level
      * added to the damage.  I think the strength bonus is more proper.       * added to the damage.  I think the strength bonus is more proper.


Legend:
line(s) removed in v.1.181 
line(s) changed
 line(s) added in v.1.182

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