| 2900 | } |
| 2901 | |
| 2902 | int obj_in_list(int objnum, int *obj_list) { |
| 2903 | int t; |
| 2904 | |
| 2905 | while ((t = *obj_list) != -1 && t != objnum) |
| 2906 | obj_list++; |
| 2907 | |
| 2908 | return (t == objnum); |
| 2909 | } |
| 2910 | |
| 2911 | // new function for Mike |
| 2912 | // note: n_segs_visited must be set to zero before this is called |