]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix DP_QC_FINDCHAIN_TOFIELD errors
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 24 Feb 2023 19:04:43 +0000 (05:04 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 24 Feb 2023 19:04:43 +0000 (05:04 +1000)
Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
clvm_cmds.c
dpdefs/dpextensions.qc
prvm_cmds.c
svvm_cmds.c

index c9a0710896116681343bf2370b34dd8c4eacf7b1..587a31bb7db6ae2f25eef22d962ffc0f792478a4 100644 (file)
@@ -469,7 +469,7 @@ static void VM_CL_findradius (prvm_prog_t *prog)
        else
                chainfield = prog->fieldoffsets.chain;
        if(chainfield < 0)
-               prog->error_cmd("VM_findchain: %s doesnt have the specified chain field !", prog->name);
+               prog->error_cmd("VM_CL_findradius: %s doesnt have the specified chain field !", prog->name);
 
        chain = (prvm_edict_t *)prog->edicts;
 
index 504628d37d625a35f65e6ca1b2ff125f1f1425f9..558a288e49dd1f9a9158fe497f41679a25120a91 100644 (file)
@@ -763,10 +763,10 @@ entity(.string fld, string match) findchain = #402;
 //idea: divVerent
 //darkplaces implementation: divVerent
 //builtin definitions:
-entity(.string fld, float match, .entity tofield) findradius_tofield = #22;
+entity(vector org, float rad, .entity tofield) findradius_tofield = #22;
 entity(.string fld, string match, .entity tofield) findchain_tofield = #402;
-entity(.string fld, float match, .entity tofield) findchainflags_tofield = #450;
-entity(.string fld, float match, .entity tofield) findchainfloat_tofield = #403;
+entity(.float fld, float match, .entity tofield) findchainflags_tofield = #450;
+entity(.float fld, float match, .entity tofield) findchainfloat_tofield = #403;
 //description:
 //similar to findchain() etc, but stores the chain into .tofield instead of .chain
 //actually, the .entity tofield is an optional field of the the existing findchain* functions
index 185ef53814e967e41e6257c487161edcf0c80b63..8bcfebd98b048b8321a7cc1c55a17757f2339663 100644 (file)
@@ -1214,7 +1214,7 @@ void VM_findchainfloat(prvm_prog_t *prog)
        else
                chainfield = prog->fieldoffsets.chain;
        if (chainfield < 0)
-               prog->error_cmd("VM_findchain: %s doesnt have the specified chain field !", prog->name);
+               prog->error_cmd("VM_findchainfloat: %s doesnt have the specified chain field !", prog->name);
 
        chain = (prvm_edict_t *)prog->edicts;
 
@@ -1300,7 +1300,7 @@ void VM_findchainflags(prvm_prog_t *prog)
        else
                chainfield = prog->fieldoffsets.chain;
        if (chainfield < 0)
-               prog->error_cmd("VM_findchain: %s doesnt have the specified chain field !", prog->name);
+               prog->error_cmd("VM_findchainflags: %s doesnt have the specified chain field !", prog->name);
 
        chain = (prvm_edict_t *)prog->edicts;
 
index 0e19550dc2a7207f81757007cbf0fe15f900cf63..ed5bb5aa27ab90acb476e31515287e503c6957ec 100644 (file)
@@ -1006,7 +1006,7 @@ static void VM_SV_findradius(prvm_prog_t *prog)
        else
                chainfield = prog->fieldoffsets.chain;
        if (chainfield < 0)
-               prog->error_cmd("VM_findchain: %s doesnt have the specified chain field !", prog->name);
+               prog->error_cmd("VM_SV_findradius: %s doesnt have the specified chain field !", prog->name);
 
        chain = (prvm_edict_t *)prog->edicts;