From 98d54d729298aae42de314ad7b843343244127e1 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 10 Aug 2005 10:25:46 +0000 Subject: [PATCH] fix a terrible mistake: don't send \n at the end of the client variables during signon git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5568 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cl_parse.c b/cl_parse.c index 20e9e70a..7f07b81d 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -280,29 +280,29 @@ Con_DPrintf("CL_SignonReply: %i\n", cls.signon); case 2: MSG_WriteByte (&cls.message, clc_stringcmd); - MSG_WriteString (&cls.message, va("name \"%s\"\n", cl_name.string)); + MSG_WriteString (&cls.message, va("name \"%s\"", cl_name.string)); MSG_WriteByte (&cls.message, clc_stringcmd); - MSG_WriteString (&cls.message, va("color %i %i\n", cl_color.integer >> 4, cl_color.integer & 15)); + MSG_WriteString (&cls.message, va("color %i %i", cl_color.integer >> 4, cl_color.integer & 15)); if (cl_pmodel.integer) { MSG_WriteByte (&cls.message, clc_stringcmd); - MSG_WriteString (&cls.message, va("pmodel %i\n", cl_pmodel.integer)); + MSG_WriteString (&cls.message, va("pmodel %i", cl_pmodel.integer)); } if (*cl_playermodel.string) { MSG_WriteByte (&cls.message, clc_stringcmd); - MSG_WriteString (&cls.message, va("playermodel %s\n", cl_playermodel.string)); + MSG_WriteString (&cls.message, va("playermodel %s", cl_playermodel.string)); } if (*cl_playerskin.string) { MSG_WriteByte (&cls.message, clc_stringcmd); - MSG_WriteString (&cls.message, va("playerskin %s\n", cl_playerskin.string)); + MSG_WriteString (&cls.message, va("playerskin %s", cl_playerskin.string)); } MSG_WriteByte (&cls.message, clc_stringcmd); - MSG_WriteString (&cls.message, va("rate %i\n", cl_rate.integer)); + MSG_WriteString (&cls.message, va("rate %i", cl_rate.integer)); MSG_WriteByte (&cls.message, clc_stringcmd); MSG_WriteString (&cls.message, "spawn"); -- 2.39.2