Browse Source

change PROTOCOL_VERSION to 25

pull/200/head
nillerusr 1 year ago
parent
commit
cc7541f132
  1. 2
      common/proto_version.h
  2. 4
      engine/baseserver.cpp

2
common/proto_version.h

@ -12,7 +12,7 @@
#endif #endif
// The current network protocol version. Changing this makes clients and servers incompatible // The current network protocol version. Changing this makes clients and servers incompatible
#define PROTOCOL_VERSION 24 #define PROTOCOL_VERSION 25
#define DEMO_BACKWARDCOMPATABILITY #define DEMO_BACKWARDCOMPATABILITY

4
engine/baseserver.cpp

@ -1404,12 +1404,12 @@ bool CBaseServer::CheckProtocol( netadr_t &adr, int nProtocol, int clientChallen
// Client is newer than server // Client is newer than server
if ( nProtocol > PROTOCOL_VERSION ) if ( nProtocol > PROTOCOL_VERSION )
{ {
RejectConnection( adr, clientChallenge, "#GameUI_ServerRejectOldProtocol" ); RejectConnection( adr, clientChallenge, "#GameUI_ServerRejectOldVersion" );
} }
else else
// Server is newer than client // Server is newer than client
{ {
RejectConnection( adr, clientChallenge, "#GameUI_ServerRejectNewProtocol" ); RejectConnection( adr, clientChallenge, "#GameUI_ServerRejectNewVersion" );
} }
return false; return false;
} }

Loading…
Cancel
Save