mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- backported sound volume fix from NBlood.
This commit is contained in:
parent
3ac8bd02f5
commit
f39eaba109
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue