X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=cl_parse.c;h=7f07b81da18373d6b72014e43ca82518f7bab90c;hb=27509e20b37cc16ab387f1523b13ae99a5bf522b;hp=de5628766b8391f863d2ea92d5c53646f8baa70b;hpb=73e25915f7fd668a887221bf7658d19c1d48c5ee;p=xonotic%2Fdarkplaces.git diff --git a/cl_parse.c b/cl_parse.c index de562876..7f07b81d 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -29,7 +29,7 @@ char *svc_strings[128] = "svc_nop", "svc_disconnect", "svc_updatestat", - "svc_version", // [long] server version + "svc_version", // [int] server version "svc_setview", // [short] entity number "svc_sound", // "svc_time", // [float] server time @@ -38,7 +38,7 @@ char *svc_strings[128] = // the string should be \n terminated "svc_setangle", // [vec3] set the view angle to this absolute value - "svc_serverinfo", // [long] version + "svc_serverinfo", // [int] version // [string] signon string // [string]..[0]model cache [string]...[0]sounds cache // [string]..[0]item cache @@ -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"); @@ -1489,7 +1489,7 @@ void CL_ParseServerMessage(void) Host_Error ("svc_lightstyle >= MAX_LIGHTSTYLES"); strlcpy (cl_lightstyle[i].map, MSG_ReadString(), sizeof (cl_lightstyle[i].map)); cl_lightstyle[i].map[MAX_STYLESTRING - 1] = 0; - cl_lightstyle[i].length = strlen(cl_lightstyle[i].map); + cl_lightstyle[i].length = (int)strlen(cl_lightstyle[i].map); break; case svc_sound: