Difference for common/object.c from version 1.120 to 1.121


version 1.120 version 1.121
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: object.c,v 1.120 2006/02/05 05:27:07 mwedel Exp $";   *   "$Id: object.c,v 1.121 2006/02/07 07:54:45 mwedel Exp $";
  */   */
   
 /*  /*
Line 1514
 
Line 1514
   
  object *more = op->more;   object *more = op->more;
   
    /* We really need the caller to normalize coordinates - if
    * we set the map, that doesn't work if the location is within
    * a map and this is straddling an edge.  So only if coordinate
    * is clear wrong do we normalize it.
    */
    if (OUT_OF_REAL_MAP(more->map, more->x, more->y)) {
  /* Debugging information so you can see the last coordinates this object had */   /* Debugging information so you can see the last coordinates this object had */
  more->ox = more->x;   more->ox = more->x;
  more->oy = more->y;   more->oy = more->y;
  more->map = get_map_from_coord(m, &more->x, &more->y);   more->map = get_map_from_coord(m, &more->x, &more->y);
    } else if (!more->map) {
        /* For backwards compatibility - when not dealing with tiled maps,
         * more->map should always point to the parent.
         */
        more->map = m;
    }
   
  if (insert_ob_in_map(more, more->map, originator, flag) == NULL) {   if (insert_ob_in_map(more, more->map, originator, flag) == NULL) {
      if ( ! op->head)       if ( ! op->head)


Legend:
line(s) removed in v.1.120 
line(s) changed
 line(s) added in v.1.121

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