From: bones_was_here Date: Fri, 24 Feb 2023 19:04:43 +0000 (+1000) Subject: Fix DP_QC_FINDCHAIN_TOFIELD errors X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f9ebc37b05c62058c7e618ceb29ae4f7fc6b4d18;p=xonotic%2Fdarkplaces.git Fix DP_QC_FINDCHAIN_TOFIELD errors Signed-off-by: bones_was_here --- diff --git a/clvm_cmds.c b/clvm_cmds.c index c9a07108..587a31bb 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -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; diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index 504628d3..558a288e 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -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 diff --git a/prvm_cmds.c b/prvm_cmds.c index 185ef538..8bcfebd9 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -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; diff --git a/svvm_cmds.c b/svvm_cmds.c index 0e19550d..ed5bb5aa 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -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;