in regards to issue #107 (#126)

* in regards to issue #107
This commit is contained in:
spark512 2017-03-24 00:17:23 +01:00 committed by s1lentq
parent bf8bda0583
commit 328a1d26fb

View File

@ -676,7 +676,12 @@ void CBreakable::Die()
// The more negative pev->health, the louder
// the sound should be.
#ifdef REGAMEDLL_FIXES
fvol = RANDOM_FLOAT(0.85f, 1.0f) + (Q_abs(pev->health) / 100.0f);
#else
fvol = RANDOM_FLOAT(0.85f, 1.0f) + (Q_abs(int(pev->health)) / 100.0f);
#endif
if (fvol > 1.0f)
fvol = 1.0f;