diff --git a/server/gameserver/roommgr.cc b/server/gameserver/roommgr.cc index ce9518d..d0baab0 100644 --- a/server/gameserver/roommgr.cc +++ b/server/gameserver/roommgr.cc @@ -125,6 +125,10 @@ void RoomMgr::Update(int delta_time) void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg) { + if (msg.proto_version() < 2021073001) { + JoinErrorHandle(msg, 6, hdr.socket_handle); + return; + } if (IsLimitJoin()) { JoinErrorHandle(msg, 2, hdr.socket_handle); return; diff --git a/server/tools/protobuild/cs_proto.proto b/server/tools/protobuild/cs_proto.proto index 1fbbf88..cf5a591 100755 --- a/server/tools/protobuild/cs_proto.proto +++ b/server/tools/protobuild/cs_proto.proto @@ -50,7 +50,7 @@ package cs; //常量 enum Constant_e { - ProtoVersion = 2020081401; //系统版本 + ProtoVersion = 2021073001; //系统版本 } //心跳