mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-04-11 12:40:45 +00:00
Mark game mode cvar as CVAR_SERVERINFO and CVAR_LATCH.
* `coop` and `deathmatch` were marked as CVAR_LATCH, `singleplayer` was not. Fix that by adding the flag to `singleplayer`. * `coop` and `deathmatch` were marked CVAR_SERVERINFO in the server intitialization code. Mark both of them and `singleplayer` with CVAR_SERVERINFO as soon as we're initializing them the first time. Pointed out by @BjossiAlfreds.
This commit is contained in:
parent
9f558dbc80
commit
ec398e2df0
2 changed files with 4 additions and 4 deletions
|
@ -363,7 +363,7 @@ SV_ChooseGamemode(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
Cvar_FullSet("singleplayer", "1", 0);
|
||||
Cvar_FullSet("singleplayer", "1", CVAR_SERVERINFO | CVAR_LATCH);
|
||||
|
||||
choice = "singleplayer";
|
||||
gamemode = GAMEMODE_SP;
|
||||
|
|
|
@ -584,9 +584,9 @@ SV_Init(void)
|
|||
|
||||
rcon_password = Cvar_Get("rcon_password", "", 0);
|
||||
Cvar_Get("skill", "1", 0);
|
||||
Cvar_Get("singleplayer", "0", CVAR_LATCH);
|
||||
Cvar_Get("deathmatch", "0", CVAR_LATCH);
|
||||
Cvar_Get("coop", "0", CVAR_LATCH);
|
||||
Cvar_Get("singleplayer", "0", CVAR_SERVERINFO | CVAR_LATCH);
|
||||
Cvar_Get("deathmatch", "0", CVAR_SERVERINFO | CVAR_LATCH);
|
||||
Cvar_Get("coop", "0", CVAR_SERVERINFO | CVAR_LATCH);
|
||||
Cvar_Get("dmflags", va("%i", DF_INSTANT_ITEMS), CVAR_SERVERINFO);
|
||||
Cvar_Get("fraglimit", "0", CVAR_SERVERINFO);
|
||||
Cvar_Get("timelimit", "0", CVAR_SERVERINFO);
|
||||
|
|
Loading…
Reference in a new issue