From c53a20aea601b40fef9623b7b83d7125f8894f84 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Mon, 5 Dec 2016 16:08:31 -0500 Subject: [PATCH 1/2] - Notify gamesim of maxviewpitch change. --- src/gl/data/gl_data.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gl/data/gl_data.cpp b/src/gl/data/gl_data.cpp index ad9c824bb..6dcdd3a54 100644 --- a/src/gl/data/gl_data.cpp +++ b/src/gl/data/gl_data.cpp @@ -62,6 +62,11 @@ CUSTOM_CVAR(Float, maxviewpitch, 90.f, CVAR_ARCHIVE|CVAR_SERVERINFO) { if (self>90.f) self=90.f; else if (self<-90.f) self=-90.f; + if (usergame) + { + // [SP] Update pitch limits to the netgame/gamesim. + players[consoleplayer].SendPitchLimits(); + } } CUSTOM_CVAR(Bool, gl_notexturefill, false, 0) From 824705eacafa975af9b5ebc3a8c42e63ce3f0680 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Mon, 5 Dec 2016 16:22:46 -0500 Subject: [PATCH 2/2] - Fixed compile errors with maxviewpitch update --- src/gl/data/gl_data.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gl/data/gl_data.cpp b/src/gl/data/gl_data.cpp index 6dcdd3a54..37d348bd8 100644 --- a/src/gl/data/gl_data.cpp +++ b/src/gl/data/gl_data.cpp @@ -39,6 +39,8 @@ #include "w_wad.h" #include "gi.h" #include "g_level.h" +#include "doomstat.h" +#include "d_player.h" #include "gl/system/gl_interface.h" #include "gl/renderer/gl_renderer.h"