[qfusion-cvs-commits] SF.net SVN: l33t: [793] trunk/qfusion/source/ref_gl/r_cin.c
Brought to you by:
digiman
From: qfusion s. c. <l33...@li...> - 2007-12-05 21:22:33
|
Revision: 793 http://l33t.svn.sourceforge.net/l33t/?rev=793&view=rev Author: digiman Date: 2007-12-05 13:22:30 -0800 (Wed, 05 Dec 2007) Log Message: ----------- Code 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 21:03:24 UTC (rev 792) +++ trunk/qfusion/source/ref_gl/r_cin.c 2007-12-05 21:22:30 UTC (rev 793) @@ -358,17 +358,17 @@ r_cinhandle_t *handle; handle = r_cinematics + id - 1; + if( !handle->cin ) + return; - if( handle->cin ) { - R_StopRoQ( handle->cin ); - Cin_Free( handle->cin ); - handle->cin = NULL; - } - if( handle->name ) { - Cin_Free( handle->name ); - handle->name = NULL; - } + R_StopRoQ( handle->cin ); + Cin_Free( handle->cin ); + handle->cin = NULL; + assert( handle->name ); + Cin_Free( handle->name ); + handle->name = NULL; + // remove from linked active list handle->prev->next = handle->next; handle->next->prev = handle->prev; @@ -378,7 +378,6 @@ r_free_cinematics = handle; } - /* ================== R_ShutdownCinematics This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |