]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Further fix and improve the sound fading code
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 26 Feb 2011 18:01:08 +0000 (20:01 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 26 Feb 2011 18:01:08 +0000 (20:01 +0200)
data/qcsrc/client/View.qc

index 4f7680924a8925192330526d841840fc50677007..b8f070a7501c2e4138c561d87c6394a1965351c9 100644 (file)
@@ -717,8 +717,8 @@ void CSQC_UpdateView(float w, float h)
                {\r
                        if(spectatee_status == -1 || intermission)\r
                        {\r
-                               volume_modify_1_target = 1;\r
-                               volume_modify_2_target = 1;\r
+                               volume_modify_1_target = volume_modify_default_1;\r
+                               volume_modify_2_target = volume_modify_default_2;\r
                        }\r
                        else if(getstati(STAT_VORE_EATEN))\r
                        {\r
@@ -727,8 +727,8 @@ void CSQC_UpdateView(float w, float h)
                        }\r
                        else\r
                        {\r
-                               volume_modify_1_target = 1;\r
-                               volume_modify_2_target = 1;\r
+                               volume_modify_1_target = volume_modify_default_1;\r
+                               volume_modify_2_target = volume_modify_default_2;\r
                        }\r
                        volume_modify_fade = cvar("cl_vore_cutvolume_fade") * frametime;\r
 \r