]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix a bug with the new volume cutting
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 18 Nov 2011 23:14:20 +0000 (01:14 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 18 Nov 2011 23:14:20 +0000 (01:14 +0200)
data/qcsrc/client/View.qc

index 58e1082be0edc869e91eec8a40e8944c89cea4b0..1a3cf5cafbda48362fac9c986139b6bceb5684b0 100644 (file)
@@ -963,6 +963,7 @@ void CSQC_UpdateView(float w, float h)
        if(cvar("cl_vore_cutvolume_sound") && frametime)\r
        {\r
                // sound volume cutting\r
+               target_volume = 0;\r
                if(getstatf(STAT_VORE_PROGRESS_PREY))\r
                        target_volume = getstatf(STAT_VORE_PROGRESS_PREY);\r
                else if(getstati(STAT_VORE_EATEN))\r
@@ -975,6 +976,7 @@ void CSQC_UpdateView(float w, float h)
        if(cvar("cl_vore_cutvolume_music") && frametime)\r
        {\r
                // music volume cutting\r
+               target_volume = 0;\r
                if(getstatf(STAT_VORE_PROGRESS_PREY))\r
                        target_volume = getstatf(STAT_VORE_PROGRESS_PREY);\r
                else if(getstati(STAT_VORE_EATEN))\r