From 755bd4fe5e014d75df2298e49ed3de637dea4404 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 28 May 2020 22:27:46 +1000 Subject: [PATCH] Fix a missing parameter on touch --- sv_phys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_phys.c b/sv_phys.c index 82388bbf..d453e3a0 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -723,8 +723,8 @@ void SV_LinkEdict_TouchAreaGrid_Call(prvm_edict_t *touch, prvm_edict_t *ent) PRVM_serverglobalstring(trace_dphittexturename) = 0; // optional entity parameter for self (EXT_ENTITYPARAM) PRVM_G_INT(OFS_PARM0) = PRVM_EDICT_TO_PROG(touch); - // optional entity parameter for self (EXT_ENTITYPARAM) - PRVM_G_INT(OFS_PARM0) = PRVM_EDICT_TO_PROG(ent); + // optional entity parameter for other (EXT_ENTITYPARAM) + PRVM_G_INT(OFS_PARM1) = PRVM_EDICT_TO_PROG(ent); prog->ExecuteProgram(prog, PRVM_serveredictfunction(touch, touch), "QC function self.touch is missing"); } -- 2.39.2