From 1ccd0b998a2192caeaa1099207c50048bde220ba Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 23 Apr 2018 09:20:31 +0000 Subject: [PATCH] apply the same double precision change to PF_normalize() as was done to PF_vlen() in r1554. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1578 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/pr_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Quake/pr_cmds.c b/Quake/pr_cmds.c index 97d2b297..ad3a2032 100644 --- a/Quake/pr_cmds.c +++ b/Quake/pr_cmds.c @@ -397,11 +397,11 @@ static void PF_normalize (void) { float *value1; vec3_t newvalue; - float new_temp; + double new_temp; value1 = G_VECTOR(OFS_PARM0); - new_temp = value1[0] * value1[0] + value1[1] * value1[1] + value1[2]*value1[2]; + new_temp = (double)value1[0] * value1[0] + (double)value1[1] * value1[1] + (double)value1[2]*value1[2]; new_temp = sqrt (new_temp); if (new_temp == 0)