From 50179cc6a7fa538adf02e37077776a556e6ba63e Mon Sep 17 00:00:00 2001
From: molivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Tue, 23 Mar 2004 15:59:10 +0000
Subject: [PATCH] Fixed the WAV file loading code (loopstart was always 0 if
 the sound was looped)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4053 d7cf8633-e32d-0410-b094-e92efae38249
---
 snd_mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/snd_mem.c b/snd_mem.c
index d924d66e..5e1ea8f9 100644
--- a/snd_mem.c
+++ b/snd_mem.c
@@ -283,7 +283,7 @@ qboolean S_LoadWavFile (const char *filename, sfx_t *s)
 	if (info.loopstart < 0)
 		s->loopstart = -1;
 	else
-		s->loopstart = (double) s->loopstart * (double) shm->format.speed / (double) s->format.speed;
+		s->loopstart = (double)info.loopstart * (double)shm->format.speed / (double)s->format.speed;
 
 #if BYTE_ORDER != LITTLE_ENDIAN
 	// We must convert the WAV data from little endian
-- 
2.39.5