ref: a2185958c18ae585825b27d3d237b3562d71a919
parent: cb2c442bc7239d3f50691812f9a7aa7f4ced50a8
author: Konstantinn Bonnet <[email protected]>
date: Thu Feb 19 06:01:16 EST 2015
remove m_freelook crap just set +mlook in console.
--- a/README
+++ b/README
@@ -42,12 +42,9 @@
- Sys_Warn added again for print(2) stuff in *_9.c that uses %r, kind of stupid
since Con_Printf was often used there, and it outputs to both fd=1 and console,
so needs fixing
- - m_freelook, as a quick hack to have (reversible) free mouse look
- vid_9.c: shitty, can probably improve performance a bit without screwing code
- snd_9.c: maybe writes to /dev/audio should be on another proc?
- *printf -> *print was stupid
- - m_freelook is sort of useless, can just type +mlook in console, but that isn't
- saved on exit; maybe there's a better way
todo/issues
--- a/in_9.c
+++ b/in_9.c
@@ -9,7 +9,6 @@
cvar_t m_windowed = {"m_windowed","0", true};
cvar_t m_filter = {"m_filter","0", true};
-cvar_t m_freelook = {"m_freelook", "0", true};
float oldm_windowed;
qboolean mouse_avail;
int mouse_buttons = 3;
@@ -83,10 +82,10 @@
cmd->sidemove += m_side.value * mouse_x;
else
cl.viewangles[YAW] -= m_yaw.value * mouse_x;
- if(m_freelook.value || in_mlook.state & 1)
+ if(in_mlook.state & 1)
V_StopPitchDrift();
- if(m_freelook.value || in_mlook.state & 1 && ~in_strafe.state & 1){
+ if(in_mlook.state & 1 && ~in_strafe.state & 1){
cl.viewangles[PITCH] += m_pitch.value * mouse_y;
if(cl.viewangles[PITCH] > 80)
cl.viewangles[PITCH] = 80;
@@ -279,7 +278,6 @@
Cvar_RegisterVariable(&m_windowed);
Cvar_RegisterVariable(&m_filter);
- Cvar_RegisterVariable(&m_freelook);
notify(sucks);
if((pid = rfork(RFPROC|RFMEM|RFFDG)) == 0){
kproc();