1
0
forked from 0ad/0ad

#changed VSrc_validate to accept values up to and including 2.0 for vs->pitch

This was SVN commit r4439.
This commit is contained in:
nd3c3nt 2006-09-30 20:10:30 +00:00
parent 2763d3a311
commit c1377256fa

View File

@ -1636,7 +1636,7 @@ static LibError VSrc_validate(const VSrc * vs)
// no limitations on <pos>
if(!(0.0f <= vs->gain && vs->gain <= 1.0f))
WARN_RETURN(ERR::_2);
if(!(0.0f < vs->pitch && vs->pitch <= 1.0f))
if(!(0.0f < vs->pitch && vs->pitch <= 2.0f))
WARN_RETURN(ERR::_3);
if(*(u8*)&vs->loop > 1 || *(u8*)&vs->relative > 1)
WARN_RETURN(ERR::_4);