This commit is contained in:
aozhiwei 2021-07-30 08:11:54 +00:00
parent bad1ecf78a
commit 41ad318626
2 changed files with 5 additions and 1 deletions

View File

@ -125,6 +125,10 @@ void RoomMgr::Update(int delta_time)
void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg) void RoomMgr::_CMJoin(f8::MsgHdr& hdr, const cs::CMJoin& msg)
{ {
if (msg.proto_version() < 2021073001) {
JoinErrorHandle(msg, 6, hdr.socket_handle);
return;
}
if (IsLimitJoin()) { if (IsLimitJoin()) {
JoinErrorHandle(msg, 2, hdr.socket_handle); JoinErrorHandle(msg, 2, hdr.socket_handle);
return; return;

View File

@ -50,7 +50,7 @@ package cs;
// //
enum Constant_e enum Constant_e
{ {
ProtoVersion = 2020081401; // ProtoVersion = 2021073001; //
} }
// //