mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Tweak server connection handling.
Add some \n to the strings and do a Host_Error when the server is using a "bad" protocol version.
This commit is contained in:
parent
cacd2fb895
commit
c526b615b1
2 changed files with 2 additions and 2 deletions
|
@ -304,7 +304,7 @@ CL_ParseServerInfo (void)
|
||||||
// parse protocol version number
|
// parse protocol version number
|
||||||
i = MSG_ReadLong (net_message);
|
i = MSG_ReadLong (net_message);
|
||||||
if (i != PROTOCOL_NETQUAKE && i!= PROTOCOL_FITZQUAKE) {
|
if (i != PROTOCOL_NETQUAKE && i!= PROTOCOL_FITZQUAKE) {
|
||||||
Sys_Printf ("Server returned version %i, not %i or %i\n", i,
|
Host_Error ("Server returned version %i, not %i or %i\n", i,
|
||||||
PROTOCOL_NETQUAKE, PROTOCOL_FITZQUAKE);
|
PROTOCOL_NETQUAKE, PROTOCOL_FITZQUAKE);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
@ -239,7 +239,7 @@ SV_SendServerinfo (client_t *client)
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
MSG_WriteByte (&client->message, svc_print);
|
MSG_WriteByte (&client->message, svc_print);
|
||||||
snprintf (message, sizeof (message), "%c\nVersion %s server (%i CRC)", 2,
|
snprintf (message, sizeof (message), "%c\nVersion %s server (%i CRC)\n", 2,
|
||||||
NQ_VERSION, sv_pr_state.crc);
|
NQ_VERSION, sv_pr_state.crc);
|
||||||
MSG_WriteString (&client->message, message);
|
MSG_WriteString (&client->message, message);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue