]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - defaultClient.cfg
avoid error on startup
[xonotic/xonotic-data.pk3dir.git] / defaultClient.cfg
index 58d8b157321a3e18db944953a3fd344d654c79d5..8e1ae8cc176d52b2f064c675c76a76ae648cf745 100644 (file)
@@ -89,6 +89,10 @@ vid_conheight 600
 // menu_conwidth, menu_conheight are set inside quake.rc
 v_deathtilt 0 // needed for spectators (who are dead to avoid prediction)
 
+// create a temporary empty alias for menu_sync so that execution of effects-normal.cfg, hud_luma.cfg
+// and sRGB-{disable,enable}.cfg on game start doesn't show an error message in the console
+alias menu_sync "" // will be re-aliased later
+
 // we want to use sRGB for our maps!
 exec sRGB-disable.cfg
 vid_sRGB_fallback 2
@@ -284,10 +288,6 @@ r_glsl_offsetmapping_lod 1
 r_glsl_offsetmapping_reliefmapping 0
 r_glsl_offsetmapping_scale 0.02
 
-// create a temporary empty alias for menu_sync so that execution of effects-normal.cfg
-// on game start doesn't show an error message in the console
-alias menu_sync "" // will be re-aliased later
-
 scr_conalpha 1
 scr_conbrightness 0.2
 scr_screenshot_jpeg 1
@@ -816,7 +816,7 @@ exec _hud_descriptions.cfg
 // please add any new cvars into the hud_save script in qcsrc/client/hud_config.qc for consistency
 exec hud_luma.cfg
 
-// enable menu syncing
+// enable menu syncing - must be after files that call menu_sync on startup - see alias menu_sync ""
 alias menu_sync "menu_cmd sync"
 
 seta cl_items_nofade 0