mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
Two bugs fixed.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1123 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f85340b9a2
commit
8362b8394b
1 changed files with 4 additions and 2 deletions
|
@ -2933,9 +2933,9 @@ void Host_Init (quakeparms_t *parms)
|
||||||
hrc = COM_FDepthFile("hexen.rc", true); //h2
|
hrc = COM_FDepthFile("hexen.rc", true); //h2
|
||||||
def = COM_FDepthFile("default.cfg", true); //q2/q3
|
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);
|
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);
|
Cbuf_AddText ("exec hexen.rc\n", RESTRICT_LOCAL);
|
||||||
else
|
else
|
||||||
{ //they didn't give us an rc file!
|
{ //they didn't give us an rc file!
|
||||||
|
@ -2987,6 +2987,8 @@ void Host_Init (quakeparms_t *parms)
|
||||||
if ((i = COM_CheckParm ("-bpp")))
|
if ((i = COM_CheckParm ("-bpp")))
|
||||||
Cvar_Set(Cvar_FindVar("vid_bpp"), com_argv[i+1]);
|
Cvar_Set(Cvar_FindVar("vid_bpp"), com_argv[i+1]);
|
||||||
|
|
||||||
|
Cvar_ApplyLatches(CVAR_RENDERERLATCH);
|
||||||
|
|
||||||
//-1 means 'never set'
|
//-1 means 'never set'
|
||||||
if (qrenderer == -1 && *vid_renderer.string)
|
if (qrenderer == -1 && *vid_renderer.string)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue