const int CVAR_READONLY = BIT(2);
// server flags
+// NOTE: the engine doesn't clear serverflags on map change (gotomap)
const int SERVERFLAG_ALLOW_FULLBRIGHT = BIT(0);
const int SERVERFLAG_TEAMPLAY = BIT(1);
const int SERVERFLAG_PLAYERSTATS = BIT(2);
void PlayerStats_GameReport_Init() // initiated before InitGameplayMode so that scores are added properly
{
+ serverflags &= ~SERVERFLAG_PLAYERSTATS;
+ serverflags &= ~SERVERFLAG_PLAYERSTATS_CUSTOM;
+
if(autocvar_g_playerstats_gamereport_uri == "") { return; }
PS_GR_OUT_DB = db_create();
void readlevelcvars()
{
+ serverflags &= ~SERVERFLAG_ALLOW_FULLBRIGHT;
if(cvar("sv_allow_fullbright"))
serverflags |= SERVERFLAG_ALLOW_FULLBRIGHT;