From 301a6431c6ea5ce99c41fa7f9567d46c8a51e89f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 2 Jun 2012 13:22:02 +0900 Subject: [PATCH] Correct a comment, and more diff reduction. It turns out NQ "never" sent coordinats at 1/16 resolution: even q1source sends coords at 1/8 resolution. This gets rid of an annoying difference. --- nq/source/cl_view.c | 8 ++++---- qw/source/cl_view.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nq/source/cl_view.c b/nq/source/cl_view.c index 0e157ac41..7c7a5c3ba 100644 --- a/nq/source/cl_view.c +++ b/nq/source/cl_view.c @@ -620,10 +620,10 @@ V_CalcRefdef (void) // never let it sit exactly on a node line, because a water plane can // disappear when viewed with the eye exactly on it. - // server protocol specifies to only 1/16 pixel, so add 1/32 in each axis - r_data->refdef->vieworg[0] += 1.0 / 32; - r_data->refdef->vieworg[1] += 1.0 / 32; - r_data->refdef->vieworg[2] += 1.0 / 32; + // server protocol specifies to only 1/8 pixel, so add 1/16 in each axis + r_data->refdef->vieworg[0] += 1.0 / 16; + r_data->refdef->vieworg[1] += 1.0 / 16; + r_data->refdef->vieworg[2] += 1.0 / 16; VectorCopy (cl.viewangles, r_data->refdef->viewangles); V_CalcViewRoll (); diff --git a/qw/source/cl_view.c b/qw/source/cl_view.c index 69958ada3..17ed38914 100644 --- a/qw/source/cl_view.c +++ b/qw/source/cl_view.c @@ -629,9 +629,9 @@ V_CalcRefdef (void) // never let it sit exactly on a node line, because a water plane can // disappear when viewed with the eye exactly on it. // server protocol specifies to only 1/8 pixel, so add 1/16 in each axis - r_data->refdef->vieworg[0] += (1.0 / 16.0); - r_data->refdef->vieworg[1] += (1.0 / 16.0); - r_data->refdef->vieworg[2] += (1.0 / 16.0); + r_data->refdef->vieworg[0] += 1.0 / 16; + r_data->refdef->vieworg[1] += 1.0 / 16; + r_data->refdef->vieworg[2] += 1.0 / 16; VectorCopy (cl.simangles, r_data->refdef->viewangles); V_CalcViewRoll ();