MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / obj_in_list

Function obj_in_list

physics/findintersection.cpp:2902–2909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2900}
2901
2902int 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

Callers 1

check_hit_objFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected