summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2014-01-12 18:16:39 -0600
committerTim Angus <tim@ngus.net>2014-06-17 17:43:38 +0100
commitca2299e50abf06a4b1a30f8a44e3dfaf11cb1429 (patch)
treed59d0630b5c21c06a570bc5377181f066fe81574
parentac7e309820eb3e8c24ef26d952dec0730a3d5075 (diff)
Remove unused code path from S_Base_StartBackgroundTrack
We make sure intro isn't NULL. Then if loop is NULL, set it to intro.
-rw-r--r--src/client/snd_dma.c6
1 files changed, 1 insertions, 5 deletions
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 );
}