Hack for Full Throttle - aquadran, are you sure these ranges are right?

svn-id: r5384
This commit is contained in:
James Brown 2002-11-02 16:33:40 +00:00
parent ffebcc826b
commit cc0f8c4fb5

View File

@ -190,7 +190,8 @@ void SaudChannel::recalcVolumeTable() {
const int32 MAX_BALANCE = 100;
int32 volume_left, volume_right;
if(_balance < -MAX_BALANCE || _balance > MAX_BALANCE) {
error("balance is out of range ! : %d", _balance);
warning("balance is out of range ! : %d", _balance);
return;
}
int32 left_multiplier = MAX_BALANCE - _balance;
int32 right_multiplier = MAX_BALANCE + _balance;