]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/menu.qc
Merge remote branch 'origin/divVerent/menu-imprOOvements' into fruitiex/newpanelhud_s...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / menu.qc
index ea0f68e8848be9d9e7290a779f864792afc7b4dd..7bec34ea0b0a1ff91aad1c9ed91d051f34ca7fc9 100644 (file)
@@ -270,6 +270,9 @@ void draw_Picture_Aligned(vector algn, float scalemode, string img, float a)
 
 void(string img, float a, string algn, float force1) drawBackground =
 {
+       if(main.mainNexposee.ModalController_state == 0)
+               return;
+
        vector v;
        float i, l;
        string c;
@@ -759,8 +762,9 @@ void() m_shutdown =
        m_hide();
        for(e = NULL; (e = nextent(e)) != NULL; )
        {
-               if(e.destroy)
-                       e.destroy(e);
+               if(e.classname != "vtbl")
+                       if(e.destroy)
+                               e.destroy(e);
        }
 };