From: Rudolf Polzer Date: Sun, 29 Jan 2012 10:14:48 +0000 (+0100) Subject: be a bit nicer to scripts running the engine by also echoing ]quit when quitting... X-Git-Tag: xonotic-v0.6.0~76 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=f101ca4d2eef09764e2eedf33e25cd2f659bad15;p=xonotic%2Fxonotic-data.pk3dir.git be a bit nicer to scripts running the engine by also echoing ]quit when quitting from the menu --- diff --git a/qcsrc/menu/xonotic/dialog_quit.c b/qcsrc/menu/xonotic/dialog_quit.c index fd8471186..71de59dac 100644 --- a/qcsrc/menu/xonotic/dialog_quit.c +++ b/qcsrc/menu/xonotic/dialog_quit.c @@ -18,7 +18,7 @@ void XonoticQuitDialog_fill(entity me) me.TD(me, 1, 2, makeXonoticTextLabel(0.5, _("Are you sure you want to quit?"))); me.TR(me); me.TR(me); - me.TD(me, 1, 1, e = makeXonoticCommandButton(_("Yes"), '1 0 0', "quit", 0)); + me.TD(me, 1, 1, e = makeXonoticCommandButton(_("Yes"), '1 0 0', "echo ]quit\nquit", 0)); me.TD(me, 1, 1, e = makeXonoticButton(_("No"), '0 1 0')); e.onClick = Dialog_Close; e.onClickEntity = me;