This commit is contained in:
aozhiwei 2024-02-05 17:15:03 +08:00
parent bee588b7ea
commit 09fae6194f

View File

@ -264,7 +264,7 @@ func (this *room) fillMFRoom(hum common.Player, pb *cs.MFRoom) {
pb.PlayerNum = proto.Int32(int32(len(this.members)))
pb.PlayerMaxNum = proto.Int32(constant.ROOM_MAX_PLAYER_NUM)
pb.TeamNum = proto.Int32(int32(len(this.teamUuidHash)))
pb.TeamMaxNum = proto.Int32(constant.ROOM_MAX_TEAM_NUM)
pb.TeamMaxNum = proto.Int32(this.config.maxTeamNum)
m := this.getMember(hum.GetAccountId())
if m != nil {
@ -285,7 +285,7 @@ func (this *room) fillMFCurrentRoom(hum common.Player, pb *cs.MFCurrentRoom) {
pb.PlayerNum = proto.Int32(int32(len(this.members)))
pb.PlayerMaxNum = proto.Int32(constant.ROOM_MAX_PLAYER_NUM)
pb.TeamNum = proto.Int32(int32(len(this.teamUuidHash)))
pb.TeamMaxNum = proto.Int32(constant.ROOM_MAX_TEAM_NUM)
pb.TeamMaxNum = proto.Int32(this.config.maxTeamNum)
m := this.getMember(hum.GetAccountId())
if m != nil {