- 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:
Randy Heit 2011-11-24 03:59:02 +00:00
parent 4d46655de6
commit 04387a6924

View file

@ -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: