MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / findNearestToEnd

Method findNearestToEnd

Engine/source/T3D/gameBase/processList.cpp:281–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281ProcessObject* ProcessList::findNearestToEnd(Vector<ProcessObject*>& objs) const
282{
283 if (objs.empty())
284 return 0;
285
286 for (ProcessObject* obj = mHead.mProcessLink.prev; obj != &mHead; obj = obj->mProcessLink.prev)
287 {
288 for (S32 i = 0; i < objs.size(); i++)
289 {
290 if (obj == objs[i])
291 return obj;
292 }
293 }
294
295 return 0;
296}
297

Callers 1

adjustProcessOrderingMethod · 0.80

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected