From ac46d0eef0e24ee0ecb832f3dd73e4572c20836c Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Tue, 2 Jan 2024 18:14:13 +0100 Subject: [PATCH] Added sv_minplayers variable --- code/fgame/gamecvars.cpp | 2 ++ code/fgame/gamecvars.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/fgame/gamecvars.cpp b/code/fgame/gamecvars.cpp index c0c6fafe..f0fd97d2 100644 --- a/code/fgame/gamecvars.cpp +++ b/code/fgame/gamecvars.cpp @@ -264,6 +264,7 @@ cvar_t *sv_scriptfiles; cvar_t *sv_maxbots; cvar_t *sv_numbots; +cvar_t *sv_minPlayers; cvar_t *g_rankedserver; cvar_t *g_spectatefollow_firstperson; @@ -600,6 +601,7 @@ void CVAR_Init(void) sv_scriptfiles = gi.Cvar_Get("sv_scriptfiles", "0", 0); sv_maxbots = gi.Cvar_Get("sv_maxbots", "0", CVAR_LATCH); sv_numbots = gi.Cvar_Get("sv_numbots", "0", CVAR_LATCH); + sv_minPlayers = gi.Cvar_Get("sv_minPlayers", "0", 0); g_rankedserver = gi.Cvar_Get("g_rankedserver", "0", 0); g_spectatefollow_firstperson = gi.Cvar_Get("g_spectatefollow_firstperson", "0", 0); diff --git a/code/fgame/gamecvars.h b/code/fgame/gamecvars.h index f77be121..8103ae5e 100644 --- a/code/fgame/gamecvars.h +++ b/code/fgame/gamecvars.h @@ -268,7 +268,8 @@ extern cvar_t* g_obituarylocation; extern cvar_t *sv_scriptfiles; extern cvar_t *sv_maxbots; -extern cvar_t * sv_numbots; +extern cvar_t *sv_numbots; +extern cvar_t *sv_minPlayers; extern cvar_t *g_rankedserver; extern cvar_t *g_spectatefollow_firstperson;