From ca2299e50abf06a4b1a30f8a44e3dfaf11cb1429 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 12 Jan 2014 18:16:39 -0600 Subject: Remove unused code path from S_Base_StartBackgroundTrack We make sure intro isn't NULL. Then if loop is NULL, set it to intro. --- src/client/snd_dma.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/client') diff --git a/src/client/snd_dma.c b/src/client/snd_dma.c index 936590e0..369d697d 100644 --- a/src/client/snd_dma.c +++ b/src/client/snd_dma.c @@ -1440,11 +1440,7 @@ void S_Base_StartBackgroundTrack( const char *intro, const char *loop ){ return; } - if( !loop ) { - s_backgroundLoop[0] = 0; - } else { - Q_strncpyz( s_backgroundLoop, loop, sizeof( s_backgroundLoop ) ); - } + Q_strncpyz( s_backgroundLoop, loop, sizeof( s_backgroundLoop ) ); S_OpenBackgroundStream( intro ); } -- cgit