engine: server: advertise sv_cheats state during connect

This commit is contained in:
Alibek Omarov
2025-09-28 22:14:07 +05:00
parent 7ba0818b83
commit 8b65cd73fc

View File

@@ -436,6 +436,7 @@ static void SV_ConnectClient( netadr_t from )
// build protinfo answer
protinfo[0] = '\0';
Info_SetValueForKeyf( protinfo, "ext", sizeof( protinfo ), "%d", newcl->extensions );
Info_SetValueForKey( protinfo, "cheats", sv_cheats.value ? "1" : "0", sizeof( protinfo ));
// send the connect packet to the client
Netchan_OutOfBandPrint( NS_SERVER, from, S2C_CONNECTION" %s", protinfo );