]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_video.c
CPMA-style cl_movement physics settings possible! Variables for it:
[xonotic/darkplaces.git] / cl_video.c
index a9f2fc4df6564d6f817c3b924acec305ea9e08c3..4eac2aea923314e61883ff220b40a8f4dcf3d72e 100644 (file)
@@ -36,7 +36,7 @@ static qboolean OpenStream( clvideo_t * video )
 }
 
 static void VideoUpdateCallback(rtexture_t *rt, void *data) {
-       clvideo_t *video = data;
+       clvideo_t *video = (clvideo_t *) data;
        R_UpdateTexture( video->cpif.tex, (unsigned char *)video->imagedata, 0, 0, video->cpif.width, video->cpif.height );
 }
 
@@ -328,7 +328,7 @@ static void CL_PlayVideo_f(void)
                return;
        }
 
-       sprintf(name, "video/%s.dpv", Cmd_Argv(1));
+       dpsnprintf(name, sizeof(name), "video/%s.dpv", Cmd_Argv(1));
        CL_VideoStart(name);
 }