Difference for common/object.c from version 1.57 to 1.58


version 1.57 version 1.58
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: object.c,v 1.57 2002/09/01 06:32:30 mwedel Exp $";   *   "$Id: object.c,v 1.58 2002/09/07 05:55:18 mwedel Exp $";
  */   */
   
 /*  /*
Line 759
 
Line 759
     }      }
 }  }
   
   /* This function removes object 'op' from the list of active
    * objects.
    * This should only be used for style maps or other such
    * reference maps where you don't want an object that isn't
    * in play chewing up cpu time getting processed.
    * The reverse of this is to call update_ob_speed, which
    * will do the right thing based on the speed of the object.
    */
   void remove_from_active_list(object *op)
   {
       /* If not on the active list, nothing needs to be done */
       if (!op->active_next && !op->active_prev && op!=active_objects)
    return;
   
       if (op->active_prev==NULL) {
    active_objects = op->active_next;
    if (op->active_next!=NULL)
        op->active_next->active_prev = NULL;
       }
       else {
    op->active_prev->active_next = op->active_next;
    if (op->active_next)
        op->active_next->active_prev = op->active_prev;
       }
       op->active_next = NULL;
       op->active_prev = NULL;
   }
   
 /*  /*
  * update_object() updates the array which represents the map.   * update_object() updates the array which represents the map.


Legend:
line(s) removed in v.1.57 
line(s) changed
 line(s) added in v.1.58

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