From: MirceaKitsune Date: Sun, 27 Feb 2011 02:08:41 +0000 (+0200) Subject: Only play the regen sound when regen is actually enabled. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b3e529335687c563c04ef02c5f8059663715bf88;p=voretournament%2Fvoretournament.git Only play the regen sound when regen is actually enabled. --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 4570ae2d..ab1658f8 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -1873,6 +1873,7 @@ float CalcRotRegen(float current, float regenstable, float regenfactor, float re current = min(regenstable, current + regenlinear * regenframetime); if(regensound != "") + if(regenfactor || regenlinear) { if(self.regen_soundtime < time) {