]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/commandbutton.qc
Put GameLogInit() code in there instead of in spawnfunc(worldspawn)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / commandbutton.qc
index fa15bdbbd7938da53d8f5db17f80ff80fa2995b9..ec03633eb136dc3cc9b4def9d3218034bd824d9d 100644 (file)
@@ -1,4 +1,5 @@
 #include "commandbutton.qh"
+#include "dialog.qh"
 
 entity makeXonoticCommandButton_T(string theText, vector theColor, string theCommand, int theFlags, string theTooltip)
 {
@@ -20,7 +21,7 @@ void XonoticCommandButton_Click(entity me, entity other)
        //if(me.flags & COMMANDBUTTON_REVERT)
        //      loadAllCvars(me.parent);
        if(me.flags & COMMANDBUTTON_CLOSE)
-               m_goto(string_null);
+               me.parent.close(me.parent);
 }
 
 void XonoticCommandButton_configureXonoticCommandButton(entity me, string theText, vector theColor, string theCommand, int theFlags, string theTooltip)