]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_video.c
Fix pure data entities being linked into the area grid, causing performance hit
[xonotic/darkplaces.git] / cl_video.c
index da8c37b082bfca56208c8468b01cf0b3423e684e..5aebcd50a2dc06feecf44708dbaca9dd5bd04a40 100644 (file)
@@ -64,7 +64,7 @@ static qboolean OpenStream( clvideo_t * video )
        if (video->stream)
                return true;
 
-       Con_Printf("unable to open \"%s\", error: %s\n", video->filename, errorstring);
+       Con_Errorf("unable to open \"%s\", error: %s\n", video->filename, errorstring);
        return false;
 }
 
@@ -178,7 +178,7 @@ static void LoadSubtitles( clvideo_t *video, const char *subtitlesfile )
                // check limits
                if (video->subtitles == CLVIDEO_MAX_SUBTITLES)
                {
-                       Con_Printf("WARNING: CLVIDEO_MAX_SUBTITLES = %i reached when reading subtitles from '%s'\n", CLVIDEO_MAX_SUBTITLES, subtitlesfile);
+                       Con_Warnf("WARNING: CLVIDEO_MAX_SUBTITLES = %i reached when reading subtitles from '%s'\n", CLVIDEO_MAX_SUBTITLES, subtitlesfile);
                        break;  
                }
                // add a sub
@@ -253,7 +253,7 @@ clvideo_t* CL_OpenVideo( const char *filename, const char *name, int owner, cons
 
        video = FindUnusedVid();
        if( !video ) {
-               Con_Printf( "CL_OpenVideo: unable to open video \"%s\" - video limit reached\n", filename );
+               Con_Errorf( "CL_OpenVideo: unable to open video \"%s\" - video limit reached\n", filename );
                return NULL;
        }
        video = OpenVideo( video, filename, name, owner, subtitlesfile );