Difference for server/monster.c from version 1.34 to 1.35


version 1.34 version 1.35
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_monster_c =   * static char *rcsid_monster_c =
  *    "$Id: monster.c,v 1.34 2001/11/02 16:22:03 michtoen Exp $";   *    "$Id: monster.c,v 1.35 2001/11/02 18:39:23 michtoen Exp $";
  */   */
   
 /*  /*
Line 201
 
Line 201
   
 int move_monster(object *op) {  int move_monster(object *op) {
     int dir, diff;      int dir, diff;
     object  *owner, *enemy, *part;      object  *owner, *enemy, *part, *oph=op;
     rv_vector rv;      rv_vector rv;
   
     /* Monsters not on maps don't do anything.  These monsters are things      /* Monsters not on maps don't do anything.  These monsters are things
Line 211
 
Line 211
   
     CLEAR_FLAG(op,FLAG_PARALYZED); /* if we are here, we never paralyzed anymore */      CLEAR_FLAG(op,FLAG_PARALYZED); /* if we are here, we never paralyzed anymore */
   
     enemy= find_enemy(op, &rv);      /* for target facing, we copy this value here for fast access */
       /* for some reason, rv is not set right for targeted enemy all times */
       /* so i call it here direct again */
       if(oph->head)           /* force update the head - one arch one pic */
           oph = oph->head;
       oph->anim_enemy_dir = -1;
       oph->anim_moving_dir = -1;
      
       if((enemy= find_enemy(op, &rv)))
       {
           get_rangevector(oph, enemy, &rv, 0);
           oph->anim_enemy_dir = rv.direction;
       }
      
   
     if(QUERY_FLAG(op, FLAG_SLEEP)||QUERY_FLAG(op, FLAG_BLIND)      if(QUERY_FLAG(op, FLAG_SLEEP)||QUERY_FLAG(op, FLAG_BLIND)
        ||((op->map->darkness>0)&&!QUERY_FLAG(op,FLAG_SEE_IN_DARK)         ||((op->map->darkness>0)&&!QUERY_FLAG(op,FLAG_SEE_IN_DARK)
Line 1227
 
Line 1240
     int newy = op->y+freearr_y[dir];      int newy = op->y+freearr_y[dir];
     object *tmp;      object *tmp;
   
       /* extended animation stuff */
       if(op->head)
           op->head->anim_moving_dir = dir;
       else
           op->anim_moving_dir = dir;   
      
     /* 0.94.2 - we need to set the direction for the new animation code.      /* 0.94.2 - we need to set the direction for the new animation code.
      * it uses it to figure out face to use - I can't see it       * it uses it to figure out face to use - I can't see it
      * breaking anything, but it might.       * breaking anything, but it might.


Legend:
line(s) removed in v.1.34 
line(s) changed
 line(s) added in v.1.35

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