From ae4b063dc33d4e62c7e644e54fea6d01321fb5e8 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sat, 27 Jun 2020 02:27:22 +0000 Subject: [PATCH] Fix client version of ambientsound It was getting values from the wrong parameter fields. They should be switched. Fix by terencehill git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12742 d7cf8633-e32d-0410-b094-e92efae38249 --- clvm_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clvm_cmds.c b/clvm_cmds.c index ef432e6e..727af941 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -685,8 +685,8 @@ static void VM_CL_ambientsound (prvm_prog_t *prog) vec3_t f; sfx_t *s; VM_SAFEPARMCOUNT(4, VM_CL_ambientsound); - s = S_FindName(PRVM_G_STRING(OFS_PARM0)); - VectorCopy(PRVM_G_VECTOR(OFS_PARM1), f); + VectorCopy(PRVM_G_VECTOR(OFS_PARM0), f); + s = S_FindName(PRVM_G_STRING(OFS_PARM1)); S_StaticSound (s, f, PRVM_G_FLOAT(OFS_PARM2), PRVM_G_FLOAT(OFS_PARM3)*64); } -- 2.39.2