From d95d025a1bbfcdd43f1d13e1aedceed53c28d7cf Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Sun, 7 Oct 2007 21:08:14 +0000 Subject: Use MSG_WriteData instead of MSG_WriteString when possible. Dropped check for \xff byte inside MSG_WriteString, clients nowadays should not use 3.20 anyway. --- source/cl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cl_main.c') diff --git a/source/cl_main.c b/source/cl_main.c index 211c9e5..ce867d2 100644 --- a/source/cl_main.c +++ b/source/cl_main.c @@ -662,7 +662,7 @@ void CL_Disconnect( comErrorType_t type, const char *text ) { if( cls.netchan ) { // send a disconnect message to the server MSG_WriteByte( clc_stringcmd ); - MSG_WriteString( "disconnect" ); + MSG_WriteData( "disconnect", 11 ); cls.netchan->Transmit( cls.netchan, msg_write.cursize, msg_write.data ); cls.netchan->Transmit( cls.netchan, msg_write.cursize, msg_write.data ); -- cgit v1.2.3