]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
use *64.dll instead of *.dll on win64, this way we can include both 32bit and 64bit...
[xonotic/darkplaces.git] / snd_main.c
index 6451829f10280fe9ed9afb3f45c7d682cd55b34b..fe590b1234d7e63ea81a5ef93f25854b653efc21 100644 (file)
@@ -569,7 +569,7 @@ int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float f
 {
        channel_t *target_chan, *check;
        int             ch_idx;
-       size_t  skip;
+       int             skip;
 
        if (!sound_started || !sfx || nosound.integer)
                return -1;
@@ -603,8 +603,8 @@ int S_StartSound (int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float f
                if (check->sfx == sfx && !check->pos)
                {
                        skip = 0.1 * sfx->format.speed;
-                       if (skip > sfx->total_length)
-                               skip = sfx->total_length;
+                       if (skip > (int)sfx->total_length)
+                               skip = (int)sfx->total_length;
                        if (skip > 0)
                                skip = rand() % skip;
                        target_chan->pos += skip;