From: vortex Date: Wed, 7 Apr 2010 19:16:19 +0000 (+0000) Subject: additional parm to "cd play" and "cd loop", could be useful with... X-Git-Tag: xonotic-v0.1.0preview~230^2~399 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2331b1c3d65e6ce6742eb8504feefcf4b6afb871;p=xonotic%2Fdarkplaces.git additional parm to "cd play" and "cd loop", could be useful with DP_QC_GETTIME_CDTRACK git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10070 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cd_shared.c b/cd_shared.c index fb37315c..5ac76832 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -508,7 +508,7 @@ static void CD_f (void) { if (music_playlist_index.integer >= 0) return; - CDAudio_Play_byName(Cmd_Argv (2), false, true, 0); + CDAudio_Play_byName(Cmd_Argv (2), false, true, (Cmd_Argc() > 3) ? atof( Cmd_Argv(3) ) : 0); return; } @@ -516,7 +516,7 @@ static void CD_f (void) { if (music_playlist_index.integer >= 0) return; - CDAudio_Play_byName(Cmd_Argv (2), true, true, 0); + CDAudio_Play_byName(Cmd_Argv (2), true, true, (Cmd_Argc() > 3) ? atof( Cmd_Argv(3) ) : 0); return; } @@ -579,8 +579,8 @@ static void CD_f (void) Con_Printf("cd remap [remap2] [remap3] [...] - chooses (possibly emulated) CD tracks to play when a map asks for a particular track, this has many uses\n"); Con_Printf("cd close - closes CD tray\n"); Con_Printf("cd eject - stops playing music and opens CD tray to allow you to change disc\n"); - Con_Printf("cd play - plays selected track in remapping table\n"); - Con_Printf("cd loop - plays and repeats selected track in remapping table\n"); + Con_Printf("cd play - plays selected track in remapping table\n"); + Con_Printf("cd loop - plays and repeats selected track in remapping table\n"); Con_Printf("cd stop - stops playing current CD track\n"); Con_Printf("cd pause - pauses CD playback\n"); Con_Printf("cd resume - unpauses CD playback\n");