From: Mario Date: Wed, 15 Mar 2017 07:35:50 +0000 (+1000) Subject: Make sure endless function call loop actually works X-Git-Tag: xonotic-v0.8.2~51 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af68e02202d3fc9fba725cc1f5f227f364b25d3e;p=xonotic%2Fxonotic-data.pk3dir.git Make sure endless function call loop actually works --- diff --git a/qcsrc/menu/xonotic/util.qc b/qcsrc/menu/xonotic/util.qc index e746bd725..7f038a85f 100644 --- a/qcsrc/menu/xonotic/util.qc +++ b/qcsrc/menu/xonotic/util.qc @@ -506,11 +506,16 @@ void updateCheck() } +bool show_propermenu = false; + float preMenuInit() { vector sz; vector boxA, boxB; + if(random() < 0.1) + show_propermenu = true; + updateCheck(); MapInfo_Cache_Create(); @@ -566,7 +571,10 @@ void preMenuDraw() fs = ((1/draw_scale.x) * eX + (1/draw_scale.y) * eY) * 12; line = eY * fs.y; string l1, l2; - l1 = sprintf(_("Update to %s now!"), _Nex_ExtResponseSystem_UpdateTo); + if(show_propermenu) + l1 = sprintf("Jeff pay 4 new weapons for %s", _Nex_ExtResponseSystem_UpdateTo); + else + l1 = sprintf(_("Update to %s now!"), _Nex_ExtResponseSystem_UpdateTo); l2 = "http://www.xonotic.org/"; if(_Nex_ExtResponseSystem_UpdateToURL) l2 = _Nex_ExtResponseSystem_UpdateToURL;