From d6d1a3a746c459e53830bb1049b49a2f22b14e93 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 6 May 2005 19:43:18 +0000 Subject: [PATCH] playvideo and cd loop/cd play commands now call Host_StartVideo (this fixes a crash and missing menu music respectively in Nexuiz) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5237 d7cf8633-e32d-0410-b094-e92efae38249 --- cd_shared.c | 2 ++ cl_video.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cd_shared.c b/cd_shared.c index 48dc4990..876a0a78 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -99,6 +99,8 @@ void CDAudio_Play (qbyte track, qboolean looping) { sfx_t* sfx; + Host_StartVideo(); + if (!enabled) return; diff --git a/cl_video.c b/cl_video.c index 51fccbb6..8baebedd 100644 --- a/cl_video.c +++ b/cl_video.c @@ -244,6 +244,8 @@ void CL_DrawVideo(void) void CL_VideoStart(char *filename) { + Host_StartVideo(); + if( videoarray->state != CLVIDEO_UNUSED ) CL_CloseVideo( videoarray ); if( !OpenVideo( videoarray, filename, va( CLVIDEOPREFIX "%s", filename ), 0 ) ) -- 2.39.2