]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cd_sdl.c
fix memory corruption when using trailparticles with an effect that has a dlight
[xonotic/darkplaces.git] / cd_sdl.c
index 1f98c49d495e808fb2d5976bb27d275220459107..c508fc02eeabb021028ac479c545c200d7b76516 100644 (file)
--- a/cd_sdl.c
+++ b/cd_sdl.c
@@ -80,7 +80,7 @@ void CDAudio_SysSetVolume (float volume)
 }
 
 
-int CDAudio_SysPlay (unsigned char track)
+int CDAudio_SysPlay (int track)
 {
        SDL_CDStop( cd );
        endtime = realtime + (float) cd->track[ track - 1 ].length / CD_FPS;
@@ -132,7 +132,7 @@ void CDAudio_SysInit (void)
        if( SDL_InitSubSystem( SDL_INIT_CDROM ) == -1 )
                Con_Print( "Failed to init the CDROM SDL subsystem!\n" );
 
-       Cmd_AddCommand( "cddrive", CDAudio_SDL_CDDrive_f );
+       Cmd_AddCommand( "cddrive", CDAudio_SDL_CDDrive_f, "select an SDL-detected CD drive by number" );
 }
 
 static int IsAudioCD( void )