Beispiel #1
0
/*
* CG_Democam_FreeCams
*/
void CG_Democam_FreeCams( void )
{
	while( cg_cams_headnode )
		CG_Democam_UnregisterCam( cg_cams_headnode );

	cg_cams_headnode = NULL;
}
Beispiel #2
0
/*
* CG_DeleteCam_Cmd_f
*/
static void CG_DeleteCam_Cmd_f( void ) {
	if( !currentcam ) {
		CG_Printf( "DeleteCam: No current cam to delete\n" );
		return;
	}

	CG_DemoCam_UpdateDemoTime();
	currentcam = CG_Democam_FindCurrent( demo_time );

	CG_Democam_UnregisterCam( currentcam );

	// update pointer to new current cam
	CG_Democam_ExecutePathAnalysis();
	currentcam = CG_Democam_FindCurrent( demo_time );
	nextcam = CG_Democam_FindNext( demo_time );
	CG_Printf( "cam deleted\n" );
}