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

Method Restart

neo/d3xp/script/Script_Thread.cpp:538–554  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

536================
537*/
538void idThread::Restart( void ) {
539 int i;
540 int n;
541
542 // reset the threadIndex
543 threadIndex = 0;
544
545 currentThread = NULL;
546 n = threadList.Num();
547 for( i = n - 1; i >= 0; i-- ) {
548 delete threadList[ i ];
549 }
550 threadList.Clear();
551
552 memset( &trace, 0, sizeof( trace ) );
553 trace.c.entityNum = ENTITYNUM_NONE;
554}
555
556/*
557================

Callers

nothing calls this directly

Calls 2

NumMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected