Fix cheats mistakenly being disabled when loading a saved game, when developer mode is enabled
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 21s

This commit is contained in:
smallmodel 2025-01-19 16:08:28 +01:00 committed by GitHub
parent edf3560dd5
commit 4e174fd5bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2317,7 +2317,7 @@ void SV_Loadgame_f(void)
Cvar_Get("g_gametype", "0", CVAR_LATCH | CVAR_SERVERINFO);
Cvar_Get("sv_maxclients", "0", CVAR_LATCH | CVAR_SERVERINFO);
if (developer->integer) {
if (!developer->integer) {
if (svs.iNumClients == 1) {
Cvar_Set("cheats", "1");
} else {