mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 06:06:50 +00:00
change PROTOCOL_VERSION to 25
This commit is contained in:
parent
9919f7ee95
commit
cc7541f132
@ -12,7 +12,7 @@
|
||||
#endif
|
||||
|
||||
// The current network protocol version. Changing this makes clients and servers incompatible
|
||||
#define PROTOCOL_VERSION 24
|
||||
#define PROTOCOL_VERSION 25
|
||||
|
||||
#define DEMO_BACKWARDCOMPATABILITY
|
||||
|
||||
|
@ -1404,12 +1404,12 @@ bool CBaseServer::CheckProtocol( netadr_t &adr, int nProtocol, int clientChallen
|
||||
// Client is newer than server
|
||||
if ( nProtocol > PROTOCOL_VERSION )
|
||||
{
|
||||
RejectConnection( adr, clientChallenge, "#GameUI_ServerRejectOldProtocol" );
|
||||
RejectConnection( adr, clientChallenge, "#GameUI_ServerRejectOldVersion" );
|
||||
}
|
||||
else
|
||||
// Server is newer than client
|
||||
{
|
||||
RejectConnection( adr, clientChallenge, "#GameUI_ServerRejectNewProtocol" );
|
||||
RejectConnection( adr, clientChallenge, "#GameUI_ServerRejectNewVersion" );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user