From: Freddy Date: Sat, 19 Feb 2022 13:50:17 +0000 (+0100) Subject: ToS: only load Xonotic ToS when actually needed X-Git-Tag: xonotic-v0.8.5~192^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a95467e68930a0531ac1893dd4411a195e484d2d;p=xonotic%2Fxonotic-data.pk3dir.git ToS: only load Xonotic ToS when actually needed --- diff --git a/qcsrc/menu/xonotic/dialog_termsofservice.qc b/qcsrc/menu/xonotic/dialog_termsofservice.qc index 39ffaa43c..0fec38a89 100644 --- a/qcsrc/menu/xonotic/dialog_termsofservice.qc +++ b/qcsrc/menu/xonotic/dialog_termsofservice.qc @@ -86,7 +86,6 @@ void XonoticToSDialog_fill(entity me) me.TR(me); me.TR(me); me.TD(me, me.rows - 4, me.columns, me.textBox = makeXonoticTextBox()); - me.loadXonoticToS(me); me.TR(me); me.gotoRC(me, me.rows - 1, 0); diff --git a/qcsrc/menu/xonotic/mainwindow.qc b/qcsrc/menu/xonotic/mainwindow.qc index 4aa974835..f5d2aca98 100644 --- a/qcsrc/menu/xonotic/mainwindow.qc +++ b/qcsrc/menu/xonotic/mainwindow.qc @@ -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);