Difference for common/map.c from version 1.102 to 1.103


version 1.102 version 1.103
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_map_c =   * static char *rcsid_map_c =
  *   "$Id: map.c,v 1.102 2006/02/09 21:25:45 akirschbaum Exp $";   *   "$Id: map.c,v 1.103 2006/02/17 08:04:43 mwedel Exp $";
  */   */
   
 /*  /*
Line 411
 
Line 411
  if (flag & P_OUT_OF_MAP) return P_OUT_OF_MAP;   if (flag & P_OUT_OF_MAP) return P_OUT_OF_MAP;
  if (flag & P_IS_ALIVE) return P_IS_ALIVE;   if (flag & P_IS_ALIVE) return P_IS_ALIVE;
   
    /* find_first_free_spot() calls this function.  However, often
    * ob doesn't have any move type (when used to place exits)
            * so the AND operation in OB_TYPE_MOVE_BLOCK doesn't work.
    */
   
    if (ob->move_type == 0 && GET_MAP_MOVE_BLOCK(m1, sx, sy) != MOVE_ALL) continue;
   
  /* Note it is intentional that we check ob - the movement type of the   /* Note it is intentional that we check ob - the movement type of the
  * head of the object should correspond for the entire object.   * head of the object should correspond for the entire object.
  */   */
   
  if (OB_TYPE_MOVE_BLOCK(ob, GET_MAP_MOVE_BLOCK(m1, sx, sy)))    if (OB_TYPE_MOVE_BLOCK(ob, GET_MAP_MOVE_BLOCK(m1, sx, sy)))
      return AB_NO_PASS;       return AB_NO_PASS;
   


Legend:
line(s) removed in v.1.102 
line(s) changed
 line(s) added in v.1.103

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