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:
parent
2763d3a311
commit
c1377256fa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user