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
|
@ -691,8 +691,11 @@ void SetDehParams(FState * state, int codepointer)
|
||||||
if (value2) StateParams.Set(ParamIndex+1, new FxConstant(SoundMap[value2-1], *pos)); // hit sound
|
if (value2) StateParams.Set(ParamIndex+1, new FxConstant(SoundMap[value2-1], *pos)); // hit sound
|
||||||
break;
|
break;
|
||||||
case MBF_PlaySound:
|
case MBF_PlaySound:
|
||||||
StateParams.Set(ParamIndex+0, new FxConstant(SoundMap[value1-1], *pos)); // soundid
|
StateParams.Set(ParamIndex+0, new FxConstant(SoundMap[value1-1], *pos)); // soundid
|
||||||
StateParams.Set(ParamIndex+4, new FxConstant((value2?ATTN_NONE:ATTN_NORM), *pos)); // attenuation
|
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;
|
break;
|
||||||
case MBF_RandomJump:
|
case MBF_RandomJump:
|
||||||
StateParams.Set(ParamIndex+0, new FxConstant(2, *pos)); // count
|
StateParams.Set(ParamIndex+0, new FxConstant(2, *pos)); // count
|
||||||
|
|
Loading…
Reference in a new issue