Skip to content

Commit

Permalink
- backported sound volume fix from NBlood.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers authored and mjr4077au committed Nov 26, 2022
1 parent fdf7360 commit a270f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/blood/src/asound.cpp
Expand Up @@ -61,7 +61,7 @@ void ambProcess(PLAYER* pPlayer)
if (actor->xspr.state)
{
int nDist = (int)(actor->spr.pos - pPlayer->actor->spr.pos).Length();
int vs = MulScale(actor->xspr.data4, actor->xspr.busy, 16);
int vs = min(MulScale(actor->xspr.data4, actor->xspr.busy, 16), 127);
ambChannels[actor->spr.intowner].distance += ClipRange(scale(nDist, actor->xspr.data1, actor->xspr.data2, vs, 0), 0, vs);
}
}
Expand Down

0 comments on commit a270f08

Please sign in to comment.