From 3fda6bb13c26d4bb30cceef69cd7f5b1144de444 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Mon, 17 Jul 2017 23:37:55 +0200 Subject: [PATCH] avoid error on startup --- defaultClient.cfg | 10 +++++----- sRGB-disable.cfg | 2 +- sRGB-enable.cfg | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/defaultClient.cfg b/defaultClient.cfg index 58d8b1573..8e1ae8cc1 100644 --- a/defaultClient.cfg +++ b/defaultClient.cfg @@ -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 diff --git a/sRGB-disable.cfg b/sRGB-disable.cfg index de0476069..930a0e7b1 100644 --- a/sRGB-disable.cfg +++ b/sRGB-disable.cfg @@ -4,4 +4,4 @@ mod_q3bsp_sRGBlightmaps 0 r_hdr_scenebrightness 1 r_ambient 4 -menu_cmd sync +menu_sync diff --git a/sRGB-enable.cfg b/sRGB-enable.cfg index a8ff4ccff..107fdd50c 100644 --- a/sRGB-enable.cfg +++ b/sRGB-enable.cfg @@ -4,4 +4,4 @@ mod_q3bsp_sRGBlightmaps 1 r_hdr_scenebrightness 1 r_ambient 0.25 -menu_cmd sync +menu_sync -- 2.39.2