]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Send jump speed caps on connect (fixes mismatching jump speed settings when server...
authorMario <mario@smbclan.net>
Fri, 26 May 2017 12:56:36 +0000 (22:56 +1000)
committerMario <mario@smbclan.net>
Fri, 26 May 2017 12:56:36 +0000 (22:56 +1000)
qcsrc/server/client.qc

index d705fd63abc7e087d701bf448c12e0ed8485cdab..ace49488e6aa848e55c15ad7e6945b215abe5715 100644 (file)
@@ -1041,6 +1041,9 @@ void FixClientCvars(entity e)
        if(autocvar_sv_gentle)
                stuffcmd(e, "cl_cmd settemp cl_gentle 1\n");
 
+       stuffcmd(this, sprintf("\ncl_jumpspeedcap_min \"%s\"\n", autocvar_sv_jumpspeedcap_min));
+       stuffcmd(this, sprintf("\ncl_jumpspeedcap_max \"%s\"\n", autocvar_sv_jumpspeedcap_max));
+
        MUTATOR_CALLHOOK(FixClientCvars, e);
 }