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

Method Restart

neo/game/script/Script_Thread.cpp:516–532  ·  view source on GitHub ↗

================ idThread::Restart ================ */

Source from the content-addressed store, hash-verified

514================
515*/
516void idThread::Restart( void ) {
517 int i;
518 int n;
519
520 // reset the threadIndex
521 threadIndex = 0;
522
523 currentThread = NULL;
524 n = threadList.Num();
525 for( i = n - 1; i >= 0; i-- ) {
526 delete threadList[ i ];
527 }
528 threadList.Clear();
529
530 memset( &trace, 0, sizeof( trace ) );
531 trace.c.entityNum = ENTITYNUM_NONE;
532}
533
534/*
535================

Callers

nothing calls this directly

Calls 2

NumMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected