Skip to content

Commit

Permalink
fix A_PlaySound not working for DSDHACKED-defined sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
XaserAcheron authored and madame-rachelle committed Aug 25, 2024
1 parent b297644 commit 76c8b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gamedata/d_dehacked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ static void CreateScratchFunc(FunctionCallEmitter &emitters, int value1, int val
// misc1 = sound, misc2 = attenuation none (true) or normal (false)
static void CreatePlaySoundFunc(FunctionCallEmitter &emitters, int value1, int value2, MBFParamState* state)
{ // A_PlaySound
emitters.AddParameterIntConst(DehFindSound(value1 - 1, true).index()); // soundid
emitters.AddParameterIntConst(DehFindSound(value1 - 1, false).index()); // soundid
emitters.AddParameterIntConst(CHAN_BODY); // channel
emitters.AddParameterFloatConst(1); // volume
emitters.AddParameterIntConst(false); // looping
Expand Down

0 comments on commit 76c8b6d

Please sign in to comment.