<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">[PATCH] view.c cleanups

 * Minor re-formatting
 * Remove some cruft, stale comments, etc.

diff -urN a/NQ/view.c head/NQ/view.c
--- a/NQ/view.c	2005-12-30 22:26:52.000000000 +1030
+++ head/NQ/view.c	2005-12-30 22:53:50.000000000 +1030
@@ -31,13 +31,11 @@
 #include "view.h"
 
 /*
-
-The view is allowed to move slightly from it's true position for bobbing,
-but if it exceeds 8 pixels linear distance (spherical, not box), the list of
-entities sent from the server may not include everything in the pvs, especially
-when crossing a water boudnary.
-
-*/
+ * The view is allowed to move slightly from it's true position for bobbing,
+ * but if it exceeds 8 pixels linear distance (spherical, not box), the list
+ * of entities sent from the server may not include everything in the pvs,
+ * especially when crossing a water boudnary.
+ */
 
 cvar_t lcd_x = { "lcd_x", "0" };
 cvar_t lcd_yaw = { "lcd_yaw", "0" };
diff -urN a/QW/client/view.c head/QW/client/view.c
--- a/QW/client/view.c	2005-12-30 22:26:52.000000000 +1030
+++ head/QW/client/view.c	2005-12-30 22:53:51.000000000 +1030
@@ -31,13 +31,11 @@
 extern vrect_t scr_vrect;
 
 /*
-
-The view is allowed to move slightly from it's true position for bobbing,
-but if it exceeds 8 pixels linear distance (spherical, not box), the list of
-entities sent from the server may not include everything in the pvs, especially
-when crossing a water boudnary.
-
-*/
+ * The view is allowed to move slightly from it's true position for bobbing,
+ * but if it exceeds 8 pixels linear distance (spherical, not box), the list
+ * of entities sent from the server may not include everything in the pvs,
+ * especially when crossing a water boudnary.
+ */
 
 cvar_t lcd_x = { "lcd_x", "0" };	// FIXME: make this work sometime...
 
@@ -212,9 +210,8 @@
     }
 // don't count small mouse motion
     if (cl.nodrift) {
-	if (fabs
-	    (cl.frames[(cls.netchan.outgoing_sequence - 1) &amp; UPDATE_MASK].cmd.
-	     forwardmove) &lt; 200)
+	const int seq = cls.netchan.outgoing_sequence - 1;
+	if (fabs(cl.frames[seq &amp; UPDATE_MASK].cmd.forwardmove) &lt; 200)
 	    cl.driftmove = 0;
 	else
 	    cl.driftmove += host_frametime;
@@ -226,7 +223,6 @@
     }
 
     delta = 0 - cl.viewangles[PITCH];
-
     if (!delta) {
 	cl.pitchvel = 0;
 	return;
@@ -235,8 +231,6 @@
     move = host_frametime * cl.pitchvel;
     cl.pitchvel += host_frametime * v_centerspeed.value;
 
-//Con_Printf ("move: %f (%f)\n", move, host_frametime);
-
     if (delta &gt; 0) {
 	if (move &gt; delta) {
 	    cl.pitchvel = 0;
</pre></body></html>