]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a silly mistake
authorMario <mario@smbclan.net>
Thu, 3 Dec 2015 14:49:23 +0000 (00:49 +1000)
committerMario <mario@smbclan.net>
Thu, 3 Dec 2015 14:49:23 +0000 (00:49 +1000)
qcsrc/common/physics.qc
qcsrc/common/physics.qh

index ad795a2b60eced763ef9b15dffed04628fa7ece5..be93c620edfc0655efe0e1c138c1c05453ef2be6 100644 (file)
@@ -1387,15 +1387,15 @@ void PM_Main(entity this)
                stuffcmd(this, strcat("cl_upspeed ", temps, "\n"));
        }
 
-       if(this.stat_jumpspeedcap_min != PHYS_JUMPSPEEDCAP_MIN)
+       if(this.jumpspeedcap_min != autocvar_sv_jumpspeedcap_min)
        {
-               this.stat_jumpspeedcap_min = PHYS_JUMPSPEEDCAP_MIN;
-               stuffcmd(this, strcat("cl_jumpspeedcap_min ", PHYS_JUMPSPEEDCAP_MIN, "\n"));
+               this.jumpspeedcap_min = autocvar_sv_jumpspeedcap_min;
+               stuffcmd(this, sprintf("\ncl_jumpspeedcap_min \"%s\"\n", autocvar_sv_jumpspeedcap_min));
        }
-       if(this.stat_jumpspeedcap_max != PHYS_JUMPSPEEDCAP_MAX)
+       if(this.jumpspeedcap_max != autocvar_sv_jumpspeedcap_max)
        {
-               this.stat_jumpspeedcap_min = PHYS_JUMPSPEEDCAP_MAX;
-               stuffcmd(this, strcat("cl_jumpspeedcap_max ", PHYS_JUMPSPEEDCAP_MAX, "\n"));
+               this.jumpspeedcap_max = autocvar_sv_jumpspeedcap_max;
+               stuffcmd(this, sprintf("\ncl_jumpspeedcap_max \"%s\"\n", autocvar_sv_jumpspeedcap_max));
        }
 #endif
 
index 2cf5a124ce91acf9c9656700f1277e0df198b2b1..7c4e2440ba6a99bd95de06613c265ee78ce3524e 100644 (file)
@@ -181,7 +181,8 @@ bool IsFlying(entity a);
        .float stat_sv_maxspeed = _STAT(MOVEVARS_MAXSPEED);
 
        /** Not real stats */
-       .string stat_jumpspeedcap_min, stat_jumpspeedcap_max;
+       .string jumpspeedcap_min
+       .string jumpspeedcap_max;
 
        #define PHYS_TELEPORT_TIME(s)                           s.teleport_time