From c53a20aea601b40fef9623b7b83d7125f8894f84 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Mon, 5 Dec 2016 16:08:31 -0500 Subject: [PATCH] - 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 ad9c824bbd..6dcdd3a548 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)