shithub: qk1

Download patch

ref: ca4cc1cb602c098dba51bb9f8e5da6b9a2827a7a
parent: afcca882c808ee92cdc600a2917c4a768706652d
author: Konstantinn Bonnet <[email protected]>
date: Fri Feb 20 05:56:21 EST 2015

wrong check for mouse movement

--- a/in_9.c
+++ b/in_9.c
@@ -222,7 +222,7 @@
 
 			mouse_x += x;
 			mouse_y += y;
-			if(m_windowed.value && x + y != 0)
+			if(m_windowed.value && (x != 0.0 ||  y != 0.0))
 				fprint(fd, "m%d %d", center.x, center.y);
 
 			mouse_buttonstate = b&1 | (b&2)<<1 | (b&4)>>1;