]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/View.qc
New cvar _hud_showbinds_reload 0 "set it to 1 to reload binds if you changed any...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / View.qc
index 9ffe5a738c67634732ac4716a6fc8e7ccace8106..35fabadcfdd0712d3d2176020c3ddbe1f2b43894 100644 (file)
@@ -390,6 +390,13 @@ void CSQC_UpdateView(float w, float h)
 
        hud = getstati(STAT_HUD);
 
+       if(autocvar__hud_showbinds_reload) // menu can set this one
+       {
+               db_close(binddb);
+               binddb = db_create();
+               cvar_set("_hud_showbinds_reload", "0");
+       }
+
        if(checkextension("DP_CSQC_MINFPS_QUALITY"))
                view_quality = getproperty(VF_MINFPS_QUALITY);
        else