From c1377256faa781d804316740898995930ee37e01 Mon Sep 17 00:00:00 2001 From: nd3c3nt Date: Sat, 30 Sep 2006 20:10:30 +0000 Subject: [PATCH] #changed VSrc_validate to accept values up to and including 2.0 for vs->pitch This was SVN commit r4439. --- source/lib/res/sound/snd_mgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/res/sound/snd_mgr.cpp b/source/lib/res/sound/snd_mgr.cpp index 3948736809..85ebe7c4be 100644 --- a/source/lib/res/sound/snd_mgr.cpp +++ b/source/lib/res/sound/snd_mgr.cpp @@ -1636,7 +1636,7 @@ static LibError VSrc_validate(const VSrc * vs) // no limitations on 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);