]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added force_centerview to glx (by moving it to vid_shared)
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 17 Oct 2001 19:15:55 +0000 (19:15 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 17 Oct 2001 19:15:55 +0000 (19:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@935 d7cf8633-e32d-0410-b094-e92efae38249

in_svgalib.c
in_win.c
vid_glx.c
vid_shared.c

index d1854309cecc00b30d8230ee6d9bdf62eab33dfc..2527be89cb5a133f820b079668d9a9f9838926d0 100644 (file)
@@ -92,12 +92,6 @@ static void mousehandler(int buttonstate, int dx, int dy, int dz, int drx, int d
 }
 
 
-void Force_CenterView_f(void)
-{
-       cl.viewangles[PITCH] = 0;
-}
-
-
 void IN_Init(void)
 {
        if (COM_CheckParm("-nokbd")) UseKeyboard = 0;
@@ -238,7 +232,6 @@ static void IN_init_mouse(void)
        int mouserate = MOUSE_DEFAULTSAMPLERATE;
 
        Cvar_RegisterVariable (&m_filter);
-       Cmd_AddCommand("force_centerview", Force_CenterView_f);
 
        mouse_buttons = 3;
 
index 5f0b731bc59759ae7e60d97466d342edebe16214..d27f5976987734582a8e3498540ce679ea45f0eb 100644 (file)
--- a/in_win.c
+++ b/in_win.c
@@ -156,17 +156,6 @@ void Joy_AdvancedUpdate_f (void);
 void IN_JoyMove (usercmd_t *cmd);
 
 
-/*
-===========
-Force_CenterView_f
-===========
-*/
-void Force_CenterView_f (void)
-{
-       cl.viewangles[PITCH] = 0;
-}
-
-
 /*
 ===========
 IN_UpdateClipCursor
@@ -473,7 +462,6 @@ void IN_Init (void)
        Cvar_RegisterVariable (&joy_wwhack1);
        Cvar_RegisterVariable (&joy_wwhack2);
 
-       Cmd_AddCommand ("force_centerview", Force_CenterView_f);
        Cmd_AddCommand ("joyadvancedupdate", Joy_AdvancedUpdate_f);
 
        uiWheelMessage = RegisterWindowMessage ( "MSWHEEL_ROLLMSG" );
index 69b8c61d631ef44a33ee1d23e80bee7cf1a6aecc..a1a898fde3c3975759361c4f56bfc7783a16c1ee 100644 (file)
--- a/vid_glx.c
+++ b/vid_glx.c
@@ -776,11 +776,6 @@ void Sys_SendKeyEvents(void)
        HandleEvents();
 }
 
-void Force_CenterView_f (void)
-{
-       cl.viewangles[PITCH] = 0;
-}
-
 void IN_Init(void)
 {
 }
index 7cea963981ec615187b00c49f9de4964c5c099d6..b28692ad57b8a74b3bafd5bbd08b1b232ae03101 100644 (file)
@@ -20,9 +20,15 @@ void (GLAPIENTRY *qglSelectTexture) (GLenum);
 void (GLAPIENTRY *qglLockArraysEXT) (GLint first, GLint count);
 void (GLAPIENTRY *qglUnlockArraysEXT) (void);
 
+void Force_CenterView_f (void)
+{
+       cl.viewangles[PITCH] = 0;
+}
+
 void VID_InitCvars(void)
 {
        Cvar_RegisterVariable(&vid_mode);
        Cvar_RegisterVariable(&vid_mouse);
        Cvar_RegisterVariable(&vid_fullscreen);
+       Cmd_AddCommand("force_centerview", Force_CenterView_f);
 }