]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/mainwindow.qc
ToS: only load Xonotic ToS when actually needed
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / mainwindow.qc
index 4aa974835a58da15959f2d79e5b7be34d9324e0d..f5d2aca98e8c622028ff506228b05af6b0a8305c 100644 (file)
@@ -61,7 +61,10 @@ void MainWindow_draw(entity me)
 
        if (me.firstDraw) {
                if (me.ToSDialog.shouldShow())
+               {
+                       me.ToSDialog.loadXonoticToS(me.ToSDialog);
                        DialogOpenButton_Click_withCoords(NULL, me.ToSDialog, '0 0 0', eX * conwidth + eY * conheight);
+               }
                else if(me.firstRunDialog.shouldShow())
                        DialogOpenButton_Click_withCoords(NULL, me.firstRunDialog, '0 0 0', eX * conwidth + eY * conheight);