]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_shared.c
Added 2(3) builtin functions.
[xonotic/darkplaces.git] / vid_shared.c
index b77fe6b1ea2d2cb1f3a12ea964655208df4fd859..55c7562bbb2a6f135d9942b5d44a4b77c1361fa3 100644 (file)
@@ -560,8 +560,8 @@ void IN_Mouse(usercmd_t *cmd, float mx, float my)
        old_mouse_x = mx;
        old_mouse_y = my;
 
-       in_mouse_x = mouse_x;
-       in_mouse_y = mouse_y;
+       in_mouse_x = (float) mouse_x * vid.conwidth / vid.realwidth;
+       in_mouse_y = (float) mouse_y * vid.conheight / vid.realheight;
 
        // AK: eveything else is client stuff 
        // BTW, this should be seperated somewhen