]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Only play the regen sound when regen is actually enabled.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 02:08:41 +0000 (04:08 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 02:08:41 +0000 (04:08 +0200)
data/qcsrc/server/cl_client.qc

index 4570ae2d99023cc0864355f0e3f27e5de5a6f12f..ab1658f8980d7e81d8478e4d4dd1c167c369df18 100644 (file)
@@ -1873,6 +1873,7 @@ float CalcRotRegen(float current, float regenstable, float regenfactor, float re
                        current = min(regenstable, current + regenlinear * regenframetime);\r
 \r
                        if(regensound != "")\r
+                       if(regenfactor || regenlinear)\r
                        {\r
                                if(self.regen_soundtime < time)\r
                                {\r