- Notify gamesim of maxviewpitch change.

This commit is contained in:
Rachael Alexanderson 2016-12-05 16:08:31 -05:00 committed by Christoph Oelckers
parent 49605bc109
commit c53a20aea6
1 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,11 @@ CUSTOM_CVAR(Float, maxviewpitch, 90.f, CVAR_ARCHIVE|CVAR_SERVERINFO)
{ {
if (self>90.f) self=90.f; if (self>90.f) self=90.f;
else 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) CUSTOM_CVAR(Bool, gl_notexturefill, false, 0)