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 4570ae2..ab1658f 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