Remove useless assignment, fix parentheses

This commit is contained in:
a1batross 2016-09-21 23:20:00 +03:00
parent 217ff810e7
commit 706c80803a
1 changed files with 1 additions and 2 deletions

View File

@ -138,10 +138,9 @@ int CHudGeiger::Draw (float flTime)
i = 2;
}
flvol = (flvol * ((rand() & 127)) / 255) + 0.25; // UTIL_RandomFloat(0.25, 0.5);
flvol = Com_RandomFloat(0.25, 25);
if( pct && rand() & 127 < pct )
if( pct && (rand() & 127) < pct )
{
//S_StartDynamicSound (-1, 0, rgsfx[rand() % i], r_origin, flvol, 1.0, 0, 100);
char sz[256];