1
This commit is contained in:
parent
bee588b7ea
commit
09fae6194f
@ -264,7 +264,7 @@ func (this *room) fillMFRoom(hum common.Player, pb *cs.MFRoom) {
|
|||||||
pb.PlayerNum = proto.Int32(int32(len(this.members)))
|
pb.PlayerNum = proto.Int32(int32(len(this.members)))
|
||||||
pb.PlayerMaxNum = proto.Int32(constant.ROOM_MAX_PLAYER_NUM)
|
pb.PlayerMaxNum = proto.Int32(constant.ROOM_MAX_PLAYER_NUM)
|
||||||
pb.TeamNum = proto.Int32(int32(len(this.teamUuidHash)))
|
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())
|
m := this.getMember(hum.GetAccountId())
|
||||||
if m != nil {
|
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.PlayerNum = proto.Int32(int32(len(this.members)))
|
||||||
pb.PlayerMaxNum = proto.Int32(constant.ROOM_MAX_PLAYER_NUM)
|
pb.PlayerMaxNum = proto.Int32(constant.ROOM_MAX_PLAYER_NUM)
|
||||||
pb.TeamNum = proto.Int32(int32(len(this.teamUuidHash)))
|
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())
|
m := this.getMember(hum.GetAccountId())
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user