Difference for server/monster.c from version 1.68 to 1.69


version 1.68 version 1.69
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_monster_c =   * static char *rcsid_monster_c =
  *    "$Id: monster.c,v 1.68 2004/03/28 15:34:15 ryo_saeba Exp $";   *    "$Id: monster.c,v 1.69 2004/04/14 07:24:30 mwedel Exp $";
  */   */
   
 /*  /*
Line 1439
 
Line 1439
         return;          return;
 }  }
   
 void check_earthwalls(object *op, int x, int y) {  void check_earthwalls(object *op, mapstruct *m, int x, int y) {
     object *tmp;      object *tmp;
     for (tmp = get_map_ob(op->map, x, y); tmp!=NULL; tmp=tmp->above) {      for (tmp = get_map_ob(m, x, y); tmp!=NULL; tmp=tmp->above) {
  if (tmp->type == EARTHWALL) {   if (tmp->type == EARTHWALL) {
      hit_player(tmp,op->stats.dam,op,AT_PHYSICAL);       hit_player(tmp,op->stats.dam,op,AT_PHYSICAL);
      return;       return;
Line 1449
 
Line 1449
     }      }
 }  }
   
 void check_doors(object *op, int x, int y) {  void check_doors(object *op, mapstruct *m, int x, int y) {
     object *tmp;      object *tmp;
     for (tmp = get_map_ob(op->map, x, y); tmp!=NULL; tmp=tmp->above) {      for (tmp = get_map_ob(m, x, y); tmp!=NULL; tmp=tmp->above) {
  if (tmp->type == DOOR) {   if (tmp->type == DOOR) {
      hit_player(tmp,1000,op,AT_PHYSICAL);       hit_player(tmp,1000,op,AT_PHYSICAL);
      return;       return;


Legend:
line(s) removed in v.1.68 
line(s) changed
 line(s) added in v.1.69

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