mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- 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
This commit is contained in:
parent
2d4accf437
commit
ab4594e2f7
1 changed files with 2 additions and 1 deletions
|
@ -664,7 +664,7 @@ static void CreateTurnFunc(FunctionCallEmitter &emitters, int value1, int value2
|
||||||
|
|
||||||
// misc1 = angle (in degrees) (arg +0)
|
// misc1 = angle (in degrees) (arg +0)
|
||||||
static void CreateFaceFunc(FunctionCallEmitter &emitters, int value1, int value2)
|
static void CreateFaceFunc(FunctionCallEmitter &emitters, int value1, int value2)
|
||||||
{ // A_FaceTarget
|
{ // A_SetAngle
|
||||||
emitters.AddParameterFloatConst(value1); // angle
|
emitters.AddParameterFloatConst(value1); // angle
|
||||||
emitters.AddParameterIntConst(0); // flags
|
emitters.AddParameterIntConst(0); // flags
|
||||||
emitters.AddParameterIntConst(AAPTR_DEFAULT); // ptr
|
emitters.AddParameterIntConst(AAPTR_DEFAULT); // ptr
|
||||||
|
@ -689,6 +689,7 @@ static void CreatePlaySoundFunc(FunctionCallEmitter &emitters, int value1, int v
|
||||||
emitters.AddParameterIntConst(false); // looping
|
emitters.AddParameterIntConst(false); // looping
|
||||||
emitters.AddParameterFloatConst(value2 ? ATTN_NONE : ATTN_NORM); // attenuation
|
emitters.AddParameterFloatConst(value2 ? ATTN_NONE : ATTN_NORM); // attenuation
|
||||||
emitters.AddParameterIntConst(false); // local
|
emitters.AddParameterIntConst(false); // local
|
||||||
|
emitters.AddParameterFloatConst(0.0); // pitch
|
||||||
}
|
}
|
||||||
|
|
||||||
// misc1 = state, misc2 = probability
|
// misc1 = state, misc2 = probability
|
||||||
|
|
Loading…
Reference in a new issue