[qfusion-cvs-commits] SF.net SVN: l33t: [791] trunk/qfusion/source/ref_gl/r_cin.c
Brought to you by:
digiman
From: qfusion s. c. <l33...@li...> - 2007-12-05 20:55:23
|
Revision: 791 http://l33t.svn.sourceforge.net/l33t/?rev=791&view=rev Author: digiman Date: 2007-12-05 12:55:21 -0800 (Wed, 05 Dec 2007) Log Message: ----------- cleanup Modified Paths: -------------- trunk/qfusion/source/ref_gl/r_cin.c Modified: trunk/qfusion/source/ref_gl/r_cin.c =================================================================== --- trunk/qfusion/source/ref_gl/r_cin.c 2007-12-05 20:41:22 UTC (rev 790) +++ trunk/qfusion/source/ref_gl/r_cin.c 2007-12-05 20:55:21 UTC (rev 791) @@ -208,31 +208,32 @@ */ void R_CinList_f( void ) { - r_cinhandle_t *handle, *hnode, *next; cinematics_t *cin; image_t *image; + r_cinhandle_t *handle, *hnode; Com_Printf( "Active cintematics:" ); hnode = &r_cinematics_headnode; handle = hnode->prev; - if( handle == hnode ) { + if( handle == hnode ) + { Com_Printf( " none\n" ); return; } Com_Printf( "\n" ); - for( ; handle != hnode; handle = next ) { - next = handle->prev; - - assert( cin ); + do { cin = handle->cin; image = handle->image; + assert( cin ); if( image && (cin->width != image->upload_width || cin->height != image->upload_height) ) Com_Printf( "%s %i(%i)x%i(%i) %i\n", cin->name, cin->width, image->upload_width, cin->height, image->upload_height, cin->frame ); else Com_Printf( "%s %ix%i %i\n", cin->name, cin->width, cin->height, cin->frame ); - } + + handle = handle->next; + } while( handle != hnode ); } /* @@ -275,7 +276,6 @@ hnode = &r_cinematics_headnode; for( handle = hnode->prev; handle != hnode; handle = next ) { next = handle->prev; - R_RunRoQ( handle->cin ); } } @@ -312,7 +312,6 @@ hnode = &r_cinematics_headnode; for( handle = hnode->prev; handle != hnode; handle = next ) { next = handle->prev; - assert( handle->cin ); // reuse This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |