]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't immediately send name changes while you're typing (spam).
authorRudolf Polzer <divVerent@xonotic.org>
Thu, 9 Apr 2015 13:08:36 +0000 (15:08 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Thu, 9 Apr 2015 13:08:36 +0000 (15:08 +0200)
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
qcsrc/menu/xonotic/dialog_multiplayer_profile.qc

index 711cfc5e889447ddff3032b346321ddbbd53f5ef..c9238a979313f1086226ce5082b1e2c92038aaf5 100644 (file)
@@ -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);
index 06bf7924444ffc6651b595f2e3536bb7c7b6f931..8c24885439e8ec9b16ac9aff2837f032fc0289dd 100644 (file)
@@ -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);