mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Initialize all parameters when converting MBF_PlaySound to A_PlaySound,
because volume was being passed as 0 to A_PlaySound. SVN r3317 (trunk)
This commit is contained in:
parent
4d46655de6
commit
04387a6924
1 changed files with 5 additions and 2 deletions
|
@ -692,6 +692,9 @@ void SetDehParams(FState * state, int codepointer)
|
|||
break;
|
||||
case MBF_PlaySound:
|
||||
StateParams.Set(ParamIndex+0, new FxConstant(SoundMap[value1-1], *pos)); // soundid
|
||||
StateParams.Set(ParamIndex+1, new FxConstant(CHAN_BODY, *pos)); // channel
|
||||
StateParams.Set(ParamIndex+2, new FxConstant(1.0, *pos)); // volume
|
||||
StateParams.Set(ParamIndex+3, new FxConstant(false, *pos)); // looping
|
||||
StateParams.Set(ParamIndex+4, new FxConstant((value2 ? ATTN_NONE : ATTN_NORM), *pos)); // attenuation
|
||||
break;
|
||||
case MBF_RandomJump:
|
||||
|
|
Loading…
Reference in a new issue