From 82a3d4bc9eaf276b248205567c254bea70c97a94 Mon Sep 17 00:00:00 2001 From: molivier Date: Fri, 10 Dec 2004 10:55:22 +0000 Subject: [PATCH] Removed a couple of warnings when compiling with GCC git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4833 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cl_video.c b/cl_video.c index 2d6069e6..70053f1b 100644 --- a/cl_video.c +++ b/cl_video.c @@ -122,10 +122,12 @@ clvideo_t* CL_GetVideo( char *name ) video = &videoarray[ i ]; if( video->suspended ) + { if( !WakeVideo( video ) ) return NULL; else if( video->state == CLVIDEO_RESETONWAKEUP ) video->framenum = -1; + } video->lasttime = realtime; @@ -205,12 +207,14 @@ void CL_VideoFrame( void ) // update all videos for( video = videoarray, i = 0 ; i < MAXCLVIDEOS ; video++, i++ ) if( video->state != CLVIDEO_UNUSED && !video->suspended ) + { if( realtime - video->lasttime > CLTHRESHOLD ) SuspendVideo( video ); else if( video->state == CLVIDEO_PAUSE ) video->starttime = realtime - video->framenum * video->framerate; else VideoFrame( video ); + } if( videoarray->state == CLVIDEO_FIRSTFRAME ) CL_VideoStop(); -- 2.39.2