object *dock_get_first_dead_docked_object(object *objp) { // are we docked? if (!object_is_dead_docked(objp)) return NULL; return objp->dead_dock_list->docked_objp; }
void dock_dead_undock_all(object *objp) { Assert(objp != NULL); while (object_is_dead_docked(objp)) { object* dockee = dock_get_first_dead_docked_object(objp); dock_dead_undock_objects(objp, dockee); } }