This commit is contained in:
aozhiwei 2024-04-16 15:21:25 +08:00
parent 8b80b27c3c
commit e80f32c70b

View File

@ -338,6 +338,7 @@ func (this *team) genStartGameInfo() {
startInfo := struct {
ZoneId int32 `json:"zone_id"`
NodeId int32 `json:"node_id"`
ModeId int32 `json:"mode_id"`
MapId int32 `json:"map_id"`
RoomUuid string `json:"room_uuid"`
StartTime int32 `json:"start_time"`
@ -357,6 +358,7 @@ func (this *team) genStartGameInfo() {
} {
ZoneId: this.GetZoneId(),
NodeId: this.GetNodeId(),
ModeId: this.mapInfo.ModeId,
MapId: this.mapInfo.MapId,
RoomUuid: q5.ToString(this.getMainTeam().GetTeamUuid()),
StartTime: int32(this.startTime),
@ -528,6 +530,9 @@ func (this *team) canMatch(targetT *team) bool {
if this == targetT {
return false
}
if this.mapInfo.ModeId != targetT.mapInfo.ModeId {
return false
}
if this.mapInfo.MapId != targetT.mapInfo.MapId {
return false
}