foxygit / doom Log in
commit 4cc85f4c99939e301ff3d1eb690be7475ac131f0
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Mon Jan 27 02:43:11 2014 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Mon Jan 27 02:43:11 2014 +0000

    sound: Fix swapped parameters for function.

    CheckVolumeSeparation() has the sep and vol parameters backwards
    compared to how they are used when the function is called. Reverse
    the order to fix this (thanks proteal). Fixes #330.
---
 src/i_sound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/i_sound.c b/src/i_sound.c
index 5106cf97..f12c8204 100644
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -271,7 +271,7 @@ void I_UpdateSound(void)
     }
 }

-static void CheckVolumeSeparation(int *sep, int *vol)
+static void CheckVolumeSeparation(int *vol, int *sep)
 {
     if (*sep < 0)
     {