MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / GetThread

Method GetThread

neo/game/script/Script_Thread.cpp:439–453  ·  view source on GitHub ↗

================ idThread::GetThread ================ */

Source from the content-addressed store, hash-verified

437================
438*/
439idThread *idThread::GetThread( int num ) {
440 int i;
441 int n;
442 idThread *thread;
443
444 n = threadList.Num();
445 for( i = 0; i < n; i++ ) {
446 thread = threadList[ i ];
447 if ( thread->GetThreadNum() == num ) {
448 return thread;
449 }
450 }
451
452 return NULL;
453}
454
455/*
456================

Callers 1

MSG_WriteThreadInfoMethod · 0.45

Calls 2

NumMethod · 0.45
GetThreadNumMethod · 0.45

Tested by

no test coverage detected