From 36ee29d9d146abd2a4237e74547d8b6dea800ed4 Mon Sep 17 00:00:00 2001 From: Andrea Toska Date: Mon, 30 Sep 2024 17:45:48 +0200 Subject: [PATCH] feat(secure): try fixing fest rooms --- nex/register_common_secure_server_protocols.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nex/register_common_secure_server_protocols.go b/nex/register_common_secure_server_protocols.go index 7f65a1b..d34e63a 100644 --- a/nex/register_common_secure_server_protocols.go +++ b/nex/register_common_secure_server_protocols.go @@ -3,7 +3,7 @@ package nex import ( "github.com/PretendoNetwork/nex-go/v2" "github.com/PretendoNetwork/nex-go/v2/types" -// common_globals "github.com/PretendoNetwork/nex-protocols-common-go/v2/globals" + common_globals "github.com/PretendoNetwork/nex-protocols-common-go/v2/globals" commonnattraversal "github.com/PretendoNetwork/nex-protocols-common-go/v2/nat-traversal" commonsecure "github.com/PretendoNetwork/nex-protocols-common-go/v2/secure-connection" nattraversal "github.com/PretendoNetwork/nex-protocols-go/v2/nat-traversal" @@ -90,11 +90,11 @@ func cleanupMatchmakeSessionSearchCriteriasHandler(searchCriterias *types.List[* func onAfterAutoMatchmakeWithParamPostpone(_ nex.PacketInterface, _ *match_making_types.AutoMatchmakeParam) { // * This is ugly but I can't work out a better way to do this // * Set Splatfest rooms to open participation -// for _, session := range common_globals.Sessions { -// if session.GameMatchmakeSession != nil && session.GameMatchmakeSession.GameMode.Value == 12 { -// session.GameMatchmakeSession.OpenParticipation.Value = true -// } -// } + for _, session := range common_globals.Sessions { + if session.GameMatchmakeSession != nil && session.GameMatchmakeSession.GameMode.Value == 12 { + session.GameMatchmakeSession.OpenParticipation.Value = true + } + } } func registerCommonSecureServerProtocols() {