From: Mario Date: Thu, 3 Dec 2015 14:49:23 +0000 (+1000) Subject: Fix a silly mistake X-Git-Tag: xonotic-v0.8.2~1569 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3962d516dff137ba682f229277bfb707803be2b3;p=xonotic%2Fxonotic-data.pk3dir.git Fix a silly mistake --- diff --git a/qcsrc/common/physics.qc b/qcsrc/common/physics.qc index ad795a2b6..be93c620e 100644 --- a/qcsrc/common/physics.qc +++ b/qcsrc/common/physics.qc @@ -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 diff --git a/qcsrc/common/physics.qh b/qcsrc/common/physics.qh index 2cf5a124c..7c4e2440b 100644 --- a/qcsrc/common/physics.qh +++ b/qcsrc/common/physics.qh @@ -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