From 03c0216ddef1ce747e3424722b97b77a88f82e71 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 6 Jul 2001 17:42:04 +0000 Subject: [PATCH] force_centerview is back --- nq/source/cl_main.c | 11 +++++++++++ qw/source/cl_main.c | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/nq/source/cl_main.c b/nq/source/cl_main.c index aa72fb744..82b188dfe 100644 --- a/nq/source/cl_main.c +++ b/nq/source/cl_main.c @@ -751,6 +751,13 @@ CL_SendCmd (void) } +void +Force_CenterView_f (void) +{ + cl.viewangles[PITCH] = 0; +} + + void CL_Init (void) { @@ -769,6 +776,10 @@ CL_Init (void) Cmd_AddCommand ("timedemo", CL_TimeDemo_f, "No Description"); Cmd_AddCommand ("maplist", COM_Maplist_f, "No Description"); + Cmd_AddCommand ("force_centerview", Force_CenterView_f, "force the view to " + "be level"); + + for (i = 0; i < MAX_STATIC_ENTITIES; i++) { cl_static_entities[i].baseline = &cl_static_entity_baselines[i]; } diff --git a/qw/source/cl_main.c b/qw/source/cl_main.c index d4b0f24c8..a254ae585 100644 --- a/qw/source/cl_main.c +++ b/qw/source/cl_main.c @@ -1083,6 +1083,13 @@ CL_Download_f (void) } +void +Force_CenterView_f (void) +{ + cl.viewangles[PITCH] = 0; +} + + void CL_Init (void) { @@ -1154,6 +1161,9 @@ CL_Init (void) Cmd_AddCommand ("stopul", CL_StopUpload, "Tells the client to stop " "uploading"); + Cmd_AddCommand ("force_centerview", Force_CenterView_f, "force the view to " + "be level"); + // forward to server commands Cmd_AddCommand ("kill", Cmd_ForwardToServer, "Suicide :)"); Cmd_AddCommand ("pause", Cmd_ForwardToServer, "Pause the game");