]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_wav.c
implemented sv_gameplayfix_qwplayerphysics
[xonotic/darkplaces.git] / snd_wav.c
index 3fa97dca8df81cbb191d73f75468705b24b6541b..89bd6c6e4cd9f5ba45406507929aa235c883345d 100644 (file)
--- a/snd_wav.c
+++ b/snd_wav.c
@@ -205,7 +205,7 @@ static wavinfo_t GetWavinfo (char *name, unsigned char *wav, int wavlength)
        {
                if (samples < info.samples)
                {
-                       Con_Printf ("Sound %s has a bad loop length", name);
+                       Con_Printf ("Sound %s has a bad loop length\n", name);
                        info.samples = samples;
                }
        }
@@ -313,7 +313,7 @@ qboolean S_LoadWavFile (const char *filename, sfx_t *s)
        if (info.loopstart < 0)
                s->loopstart = -1;
        else
-               s->loopstart = (double)info.loopstart * (double)shm->format.speed / (double)s->format.speed;
+               s->loopstart = (int)((double)info.loopstart * (double)shm->format.speed / (double)s->format.speed);
        s->flags &= ~SFXFLAG_STREAMED;
 
 #if BYTE_ORDER != LITTLE_ENDIAN