]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
try to restore old menu status
authorRudolf Polzer <divverent@alientrap.org>
Mon, 12 Mar 2012 16:32:07 +0000 (17:32 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 12 Mar 2012 16:32:07 +0000 (17:32 +0100)
qcsrc/menu/xonotic/util.qc

index e733b7460b38d3d4de90203b5a34da2cc169f417..3a73e226463fd20874e20b77fa1d071bc7174cff 100644 (file)
@@ -448,7 +448,7 @@ void preMenuDraw()
 
        if(_Nex_ExtResponseSystem_PacksStep > 0)
        {
-               float n;
+               float n, i;
                float allgood;
                n = tokenize_console(_Nex_ExtResponseSystem_Packs);
                allgood = TRUE;
@@ -463,7 +463,12 @@ void preMenuDraw()
                if(allgood)
                {
                        if(_Nex_ExtResponseSystem_PacksStep == 2)
+                       {
+                               if(!Menu_Active)
+                                       cvar_set("_menu_initialized", "0");
+                                       // HACK: cause m_hide call on next start
                                localcmd("\nmenu_restart\n");
+                       }
                        _Nex_ExtResponseSystem_PacksStep = 0;
                }
                else