From: Rudolf Polzer Date: Thu, 9 Apr 2015 13:08:36 +0000 (+0200) Subject: Don't immediately send name changes while you're typing (spam). X-Git-Tag: xonotic-v0.8.1~89 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=952bf19e1d4069c46db013111e815d736aa9d064 Don't immediately send name changes while you're typing (spam). This is because the engine automatically sends changes to $_cl_name to the server. Maybe we later want to use another cvar for menu editing of the name... sucks. --- diff --git a/qcsrc/menu/xonotic/dialog_firstrun.qc b/qcsrc/menu/xonotic/dialog_firstrun.qc index 711cfc5e88..c9238a9793 100644 --- a/qcsrc/menu/xonotic/dialog_firstrun.qc +++ b/qcsrc/menu/xonotic/dialog_firstrun.qc @@ -59,7 +59,7 @@ void XonoticFirstRunDialog_fill(entity me) me.TD(me, 1, 3.75, box = makeXonoticInputBox(1, "_cl_name")); box.forbiddenCharacters = "\r\n\\\"$"; // don't care, isn't getting saved box.maxLength = -127; // negative means encoded length in bytes - box.saveImmediately = 1; + box.saveImmediately = 0; // Sorry, can't do this, it spams "name" commands. box.enableClearButton = 0; label.textEntity = box; me.TR(me); diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_profile.qc b/qcsrc/menu/xonotic/dialog_multiplayer_profile.qc index 06bf792444..8c24885439 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_profile.qc +++ b/qcsrc/menu/xonotic/dialog_multiplayer_profile.qc @@ -51,7 +51,7 @@ void XonoticProfileTab_fill(entity me) me.TD(me, 1, 3.0, box = makeXonoticInputBox(1, "_cl_name")); box.forbiddenCharacters = "\r\n\\\"$"; // don't care, isn't getting saved box.maxLength = -127; // negative means encoded length in bytes - box.saveImmediately = 1; + box.saveImmediately = 0; // Sorry, can't do this, it spams "name" commands. box.enableClearButton = 0; label.textEntity = box; me.TR(me);