From: Mario Date: Thu, 28 May 2020 12:27:46 +0000 (+1000) Subject: Fix a missing parameter on touch X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=755bd4fe5e014d75df2298e49ed3de637dea4404;p=xonotic%2Fdarkplaces.git Fix a missing parameter on touch --- 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"); }