]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix a missing parameter on touch
authorMario <mario@smbclan.net>
Thu, 28 May 2020 12:27:46 +0000 (22:27 +1000)
committerMario <mario@smbclan.net>
Thu, 28 May 2020 12:27:46 +0000 (22:27 +1000)
sv_phys.c

index 82388bbf0ab23b3d4f0c7191bd8865d887dd5246..d453e3a0edee44ae0b9572b92ae6f1bb71df80e6 100644 (file)
--- 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");
 }