From 8362b8394b49dd4d57c557f2b5d62cea4c76bc02 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 2 Jul 2005 00:15:19 +0000 Subject: [PATCH] Two bugs fixed. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1123 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index bba85ae11..cbca4d573 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -2933,9 +2933,9 @@ void Host_Init (quakeparms_t *parms) hrc = COM_FDepthFile("hexen.rc", true); //h2 def = COM_FDepthFile("default.cfg", true); //q2/q3 - if (qrc >= def && qrc >= hrc && qrc!=0x7fffffff) + if (qrc <= def && qrc <= hrc && qrc!=0x7fffffff) Cbuf_AddText ("exec quake.rc\n", RESTRICT_LOCAL); - else if (hrc >= def && hrc!=0x7fffffff) + else if (hrc <= def && hrc!=0x7fffffff) Cbuf_AddText ("exec hexen.rc\n", RESTRICT_LOCAL); else { //they didn't give us an rc file! @@ -2987,6 +2987,8 @@ void Host_Init (quakeparms_t *parms) if ((i = COM_CheckParm ("-bpp"))) Cvar_Set(Cvar_FindVar("vid_bpp"), com_argv[i+1]); + Cvar_ApplyLatches(CVAR_RENDERERLATCH); + //-1 means 'never set' if (qrenderer == -1 && *vid_renderer.string) {