mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-13 14:28:01 +00:00
host.c (Host_Init): Execute quake.rc _after_ setting host_hunklevel
and host_initialized. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@466 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
55cc159297
commit
b7a03b22f3
1 changed files with 8 additions and 8 deletions
16
Quake/host.c
16
Quake/host.c
|
@ -864,21 +864,21 @@ void Host_Init (void)
|
||||||
BGM_Init();
|
BGM_Init();
|
||||||
Sbar_Init ();
|
Sbar_Init ();
|
||||||
CL_Init ();
|
CL_Init ();
|
||||||
|
|
||||||
Cbuf_InsertText ("exec quake.rc\n");
|
|
||||||
// Cbuf_InsertText ("exec fitzquake.rc\n"); //johnfitz (inserted second so it'll be executed first)
|
|
||||||
|
|
||||||
// johnfitz -- in case the vid mode was locked during vid_init, we can unlock it now.
|
|
||||||
// note: two leading newlines because the command buffer swallows one of them.
|
|
||||||
Cbuf_AddText ("\n\nvid_unlock\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Hunk_AllocName (0, "-HOST_HUNKLEVEL-");
|
Hunk_AllocName (0, "-HOST_HUNKLEVEL-");
|
||||||
host_hunklevel = Hunk_LowMark ();
|
host_hunklevel = Hunk_LowMark ();
|
||||||
|
|
||||||
host_initialized = true;
|
host_initialized = true;
|
||||||
|
Con_Printf ("\n========= Quake Initialized =========\n\n");
|
||||||
|
|
||||||
Con_Printf ("\n========= Quake Initialized =========\n\n"); //johnfitz - was Sys_Printf
|
if (cls.state != ca_dedicated)
|
||||||
|
{
|
||||||
|
Cbuf_InsertText ("exec quake.rc\n");
|
||||||
|
// johnfitz -- in case the vid mode was locked during vid_init, we can unlock it now.
|
||||||
|
// note: two leading newlines because the command buffer swallows one of them.
|
||||||
|
Cbuf_AddText ("\n\nvid_unlock\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (cls.state == ca_dedicated)
|
if (cls.state == ca_dedicated)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue