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


version 1.103 version 1.104
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_map_c =   * static char *rcsid_map_c =
  *   "$Id: map.c,v 1.103 2006/02/17 08:04:43 mwedel Exp $";   *   "$Id: map.c,v 1.104 2006/02/17 21:29:47 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 2029
 
Line 2029
  * Return whether map2 is adjacent to map1. If so, store the distance from   * Return whether map2 is adjacent to map1. If so, store the distance from
  * map1 to map2 in dx/dy.   * map1 to map2 in dx/dy.
  */   */
 static int adjacent_map (mapstruct *map1, mapstruct *map2, int *dx, int *dy) {  static int adjacent_map(const mapstruct *map1, const mapstruct *map2, int *dx, int *dy) {
     if (!map1 || !map2)      if (!map1 || !map2)
         return 0;          return 0;
   
Line 2160
 
Line 2160
  * field of the rv_vector is set to NULL.   * field of the rv_vector is set to NULL.
  */   */
   
 void get_rangevector_from_mapcoord(mapstruct  *m, int x, int y, object *op2, rv_vector *retval, int flags) {  void get_rangevector_from_mapcoord(const mapstruct *m, int x, int y, const object *op2, rv_vector *retval, int flags) {
     if (!adjacent_map(m, op2->map, &retval->distance_x, &retval->distance_y)) {      if (!adjacent_map(m, op2->map, &retval->distance_x, &retval->distance_y)) {
         /* be conservative and fill in _some_ data */          /* be conservative and fill in _some_ data */
         retval->distance   = 100000;          retval->distance   = 100000;
Line 2186
 
Line 2186
  * and efficient.  This could probably be a macro.   * and efficient.  This could probably be a macro.
  * MSW 2001-08-05   * MSW 2001-08-05
  */   */
 int on_same_map(object *op1, object *op2) {  int on_same_map(const object *op1, const object *op2) {
     int dx, dy;      int dx, dy;
   
     return adjacent_map(op1->map, op2->map, &dx, &dy);      return adjacent_map(op1->map, op2->map, &dx, &dy);


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

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