Make com_target_game and com_target_demo write-protected (can only be set at startup)

This commit is contained in:
smallmodel 2024-11-17 14:28:00 +01:00
parent 598110477e
commit 880acf9120
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -1655,8 +1655,8 @@ void Com_Init( char *commandLine ) {
// done early so bind command exists
CL_InitKeyCommands();
com_target_game = Cvar_Get("com_target_game", "0", CVAR_LATCH | CVAR_PROTECTED);
com_target_demo = Cvar_Get("com_target_demo", "0", CVAR_LATCH | CVAR_PROTECTED);
com_target_game = Cvar_Get("com_target_game", "0", CVAR_INIT|CVAR_PROTECTED);
com_target_demo = Cvar_Get("com_target_demo", "0", CVAR_INIT|CVAR_PROTECTED);
com_target_version = Cvar_Get("com_target_version", "0.00", CVAR_ROM);
com_standalone = Cvar_Get("com_standalone", "0", CVAR_ROM);
com_basegame = Cvar_Get("com_basegame", BASEGAME, CVAR_INIT);