]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Yay, make it crash at least.
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Jan 2008 01:59:47 +0000 (01:59 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Jan 2008 01:59:47 +0000 (01:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/branches/dp-mqc-render/darkplaces@7909 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index 63cec73b57d328dc5a4b3dcf4bdbd9743617cb52..e494080bfdb487d373e8058fd7a6f795abf3efdf 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -5076,6 +5076,8 @@ void MP_Draw (void)
        PRVM_Begin;
        PRVM_SetProg(PRVM_MENUPROG);
 
+       R_UpdateVariables();
+
        // FIXME: this really shouldnt error out lest we have a very broken refdef state...?
        // or does it kill the server too?
        PRVM_ExecuteProgram(prog->funcoffsets.m_draw,"m_draw() required");
@@ -5140,6 +5142,9 @@ void MP_Init (void)
        // call the prog init
        PRVM_ExecuteProgram(prog->funcoffsets.m_init,"m_init() required");
 
+       // FIXME: needed so cl.max_entities is set
+       CL_ClearState ();
+
        PRVM_End;
 }