From f32aff339657a3e43ed0b016ca5a887a5e90be80 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 12 Jan 2020 11:48:45 +0200 Subject: [PATCH] - fixed A_PlaySound() called from Dehacked The recently added argument was missing from PlaySound code pointer handling Verified other Dehacked functions, and changed one incorrect comment --- src/gamedata/d_dehacked.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gamedata/d_dehacked.cpp b/src/gamedata/d_dehacked.cpp index e01bbbe46..b8ba61890 100644 --- a/src/gamedata/d_dehacked.cpp +++ b/src/gamedata/d_dehacked.cpp @@ -654,7 +654,7 @@ static void CreateTurnFunc(FunctionCallEmitter &emitters, int value1, int value2 // misc1 = angle (in degrees) (arg +0) static void CreateFaceFunc(FunctionCallEmitter &emitters, int value1, int value2) -{ // A_FaceTarget +{ // A_SetAngle emitters.AddParameterFloatConst(value1); // angle emitters.AddParameterIntConst(0); // flags emitters.AddParameterIntConst(AAPTR_DEFAULT); // ptr @@ -679,6 +679,7 @@ static void CreatePlaySoundFunc(FunctionCallEmitter &emitters, int value1, int v emitters.AddParameterIntConst(false); // looping emitters.AddParameterFloatConst(value2 ? ATTN_NONE : ATTN_NORM); // attenuation emitters.AddParameterIntConst(false); // local + emitters.AddParameterFloatConst(0.0); // pitch } // misc1 = state, misc2 = probability