From 081c5f15972143676f5ce3226b3a27d1d1a518c3 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Tue, 2 Jun 2020 14:03:07 +0000 Subject: [PATCH] In findfloat and findchainfloat, use prvm_vec_t like the rest of the VM This caused Xonotic vehicles to delete every CSQC entity on the map due to a bad comparison between a double and a float. Big, big thanks to Mario for finding this, yet again. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12625 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prvm_cmds.c b/prvm_cmds.c index ec68d188..f947766a 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -1080,7 +1080,7 @@ void VM_findfloat(prvm_prog_t *prog) { int e; int f; - float s; + prvm_vec_t s; prvm_edict_t *ed; VM_SAFEPARMCOUNT(3,VM_findfloat); @@ -1173,7 +1173,7 @@ void VM_findchainfloat(prvm_prog_t *prog) { int i; int f; - float s; + prvm_vec_t s; prvm_edict_t *ent, *chain; int chainfield; -- 2.39.2