]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix the quit dialogue reappearing after pressing the quit game button
authorterencehill <piuntn@gmail.com>
Wed, 2 Jun 2021 14:26:33 +0000 (16:26 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 2 Jun 2021 14:26:33 +0000 (16:26 +0200)
qcsrc/menu/xonotic/commandbutton.qc

index fa15bdbbd7938da53d8f5db17f80ff80fa2995b9..d7b491e8fef1a533267d18054c363c59a30b425b 100644 (file)
@@ -20,7 +20,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)