]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rename *_z cvars in *_vertical to work around a bug in autocvars parsing: a float...
authorterencehill <piuntn@gmail.com>
Sat, 15 Jan 2011 15:57:42 +0000 (16:57 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 15 Jan 2011 16:37:56 +0000 (17:37 +0100)
defaultXonotic.cfg
qcsrc/client/autocvars.qh
qcsrc/client/hud.qc
qcsrc/menu/xonotic/dialog_hudpanel_physics.c

index 6617176f713a4c3d28af312b2e90961e2c12a67d..bb4474062141c49439e68a4a115fd4f23349e708 100644 (file)
@@ -1425,11 +1425,11 @@ seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_instantupdate_ch
 seta hud_panel_physics_speed_unit 3 "speed unit (1 = qu/s, 2 = m/s, 3 = km/h, 4 = mph, 5 = knots)"
 seta hud_panel_physics_speed_unit_show 1 "also show speed unit"
 seta hud_panel_physics_speed_max 1800 "speed progressbar gets filled up completely by this value (in qu/s)"
-seta hud_panel_physics_speed_z 0 "include the speed on the Z-axis"
+seta hud_panel_physics_speed_vertical 0 "include the speed on the Z-axis"
 seta hud_panel_physics_topspeed 1 "also show top speed"
 seta hud_panel_physics_topspeed_time 4 "how many seconds the top speed takes to fade out"
 seta hud_panel_physics_acceleration_max 2 "acceleration progressbar gets filled up completely by this value"
-seta hud_panel_physics_acceleration_z 0 "include the acceleration on the Z-axis"
+seta hud_panel_physics_acceleration_vertical 0 "include the acceleration on the Z-axis"
 
 seta hud_showbinds 1   "what to show in the HUD to indicate certain keys to press: 0 display commands, 1 bound keys, 2 both"
 seta hud_showbinds_limit 2     "maximum number of bound keys to show for a command. 0 for unlimited"
index 4a5696369590b8c7d8a13481184bb3ed26cd8ce8..4635407cb36ac51d38666aabb9f9f7a07a8e8751 100644 (file)
@@ -191,14 +191,14 @@ float autocvar_hud_panel_notify_time;
 float autocvar_hud_panel_physics;
 float autocvar_hud_panel_physics_progressbar_acceleration_mode;
 float autocvar_hud_panel_physics_acceleration_max;
-float autocvar_hud_panel_physics_acceleration_z;
+float autocvar_hud_panel_physics_acceleration_vertical;
 float autocvar_hud_panel_physics_baralign;
 float autocvar_hud_panel_physics_flip;
 float autocvar_hud_panel_physics_progressbar;
 float autocvar_hud_panel_physics_speed_max;
 float autocvar_hud_panel_physics_speed_unit;
 float autocvar_hud_panel_physics_speed_unit_show;
-float autocvar_hud_panel_physics_speed_z;
+float autocvar_hud_panel_physics_speed_vertical;
 float autocvar_hud_panel_physics_topspeed;
 float autocvar_hud_panel_physics_topspeed_time;
 float autocvar_hud_panel_powerups;
index e90ba56ae577797f8fa3db895e0aefba610ab871..afdd8b4b751dbf4c23042b70388e0464b789c8be 100644 (file)
@@ -4244,7 +4244,7 @@ void HUD_Physics(void)
        float max_speed = floor( autocvar_hud_panel_physics_speed_max * conversion_factor + 0.5 );
        if (autocvar__hud_configure)
                speed = floor( max_speed * 0.65 + 0.5 );
-       else if(autocvar_hud_panel_physics_speed_z)
+       else if(autocvar_hud_panel_physics_speed_vertical)
                speed = floor( vlen(pmove_vel) * conversion_factor + 0.5 );
        else
                speed = floor( vlen(pmove_vel - pmove_vel_z * '0 0 1') * conversion_factor + 0.5 );
@@ -4256,7 +4256,7 @@ void HUD_Physics(void)
        else
        {
                f = time - acc_prevtime;
-               if(autocvar_hud_panel_physics_acceleration_z)
+               if(autocvar_hud_panel_physics_acceleration_vertical)
                        acceleration = (vlen(pmove_vel) - vlen(acc_prevspeed)) * (1 / f);
                else
                        acceleration = (vlen(pmove_vel - '0 0 1' * pmove_vel_z) - vlen(acc_prevspeed - '0 0 1' * acc_prevspeed_z)) * (1 / f);
index 8277b5e8595e6f9c624feed5a5a27735011f3dd9..ae3767e5d217506067605e36ae38074911c3dd22 100644 (file)
@@ -91,7 +91,7 @@ void XonoticHUDPhysicsDialog_fill(entity me)
 //speed
        me.TR(me);
                me.TD(me, 1, 1, e = makeXonoticTextLabel(0, "Speed:"));
-               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_physics_speed_z", "Include vertical speed"));
+               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_physics_speed_vertical", "Include vertical speed"));
        // me.TR(me);
                // me.TDempty(me, 0.2);
                // me.TD(me, 1, 1.8, e = makeXonoticTextLabel(0, "Full status bar at:"));
@@ -120,7 +120,7 @@ void XonoticHUDPhysicsDialog_fill(entity me)
 //acceleration
        me.TR(me);
                me.TD(me, 1, 1, e = makeXonoticTextLabel(0, "Acceleration:"));
-               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_physics_acceleration_z", "Include vertical acc."));
+               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "hud_panel_physics_acceleration_vertical", "Include vertical acc."));
        // me.TR(me);
                // me.TDempty(me, 0.2);
                // me.TD(me, 1, 1.8, e = makeXonoticTextLabel(0, "Full status bar at:"));