X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=svvm_cmds.c;fp=svvm_cmds.c;h=ab9dc257252bb9662497030cf1e3832b5de94061;hb=1832ca94b309e6d542457a33c4ac5af10f4dc2a1;hp=a9d50af10c50008f3640642f8e8ac0a622eda71e;hpb=231beb2c234914f942166eb152c44e55b5b01f86;p=xonotic%2Fdarkplaces.git diff --git a/svvm_cmds.c b/svvm_cmds.c index a9d50af1..ab9dc257 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -1762,7 +1762,7 @@ void VM_SV_UpdateCustomStats (client_t *client, prvm_edict_t *ent, sizebuf_t *ms } } -extern cvar_t sv_gameplayfix_customstats; +extern cvar_t sv_qcstats; // void(float index, float type, .void field) SV_AddStat = #232; // Set up an auto-sent player stat. @@ -1813,9 +1813,9 @@ static void VM_SV_AddStat(prvm_prog_t *prog) // these are hazardous to override but sort of allowed if one wants to be adventurous... and enjoys warnings. if (i < MIN_VM_STAT) VM_Warning(prog, "PF_SV_AddStat: index (%i) < MIN_VM_STAT (%i) may conflict with engine stats - allowed, but this may break things\n", i, MIN_VM_STAT); - else if (i >= MAX_VM_STAT && !sv_gameplayfix_customstats.integer) + else if (i >= MAX_VM_STAT && !sv_qcstats.integer) VM_Warning(prog, "PF_SV_AddStat: index (%i) >= MAX_VM_STAT (%i) conflicts with engine stats - allowed, but this may break slowmo and stuff\n", i, MAX_VM_STAT); - else if (i > (MAX_VM_STAT - 4) && type == 1 && !sv_gameplayfix_customstats.integer) + else if (i > (MAX_VM_STAT - 4) && type == 1 && !sv_qcstats.integer) VM_Warning(prog, "PF_SV_AddStat: index (%i) >= MAX_VM_STAT (%i) - 4 with string type won't fit within MAX_VM_STAT, thus conflicting with engine stats - allowed, but this may break slowmo and stuff\n", i, MAX_VM_STAT); vm_customstats[i].type = type;