From 952bf19e1d4069c46db013111e815d736aa9d064 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 9 Apr 2015 15:08:36 +0200 Subject: [PATCH] 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. --- qcsrc/menu/xonotic/dialog_firstrun.qc | 2 +- qcsrc/menu/xonotic/dialog_multiplayer_profile.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/menu/xonotic/dialog_firstrun.qc b/qcsrc/menu/xonotic/dialog_firstrun.qc index 711cfc5e8..c9238a979 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 06bf79244..8c2488543 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); -- 2.39.2