From: FruitieX Date: Wed, 8 Dec 2010 20:31:12 +0000 (+0200) Subject: fix sv_doublejump autocvar X-Git-Tag: xonotic-v0.1.0preview~51^2~26 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3e4452e6cd89539ffc83a7d64f6b8159a708a01e;p=xonotic%2Fxonotic-data.pk3dir.git fix sv_doublejump autocvar --- diff --git a/qcsrc/server/autocvars.qh b/qcsrc/server/autocvars.qh index eb344da93..cd688f8a4 100644 --- a/qcsrc/server/autocvars.qh +++ b/qcsrc/server/autocvars.qh @@ -1083,6 +1083,7 @@ float autocvar_sv_dodging_sound; float autocvar_sv_dodging_up_speed; float autocvar_sv_dodging_wall_distance_threshold; float autocvar_sv_dodging_wall_dodging; +float autocvar_sv_doublejump; float autocvar_sv_eventlog; float autocvar_sv_eventlog_console; float autocvar_sv_eventlog_files; diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index ed459ae5e..e2feca927 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -30,7 +30,7 @@ void PlayerJump (void) float doublejump; doublejump = FALSE; - if (sv_doublejump) + if (autocvar_sv_doublejump) { tracebox(self.origin + '0 0 0.01', self.mins, self.maxs, self.origin - '0 0 0.01', MOVE_NORMAL, self); if (trace_fraction < 1 && trace_plane_normal_z > 0.7) diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index c9a7e61c4..76ce748ca 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -427,7 +427,6 @@ float sv_maxidle; float sv_maxidle_spectatorsareidle; float sv_pogostick; -float sv_doublejump; float tracebox_hits_trigger_hurt(vector start, vector mi, vector ma, vector end); float next_pingtime;