From e32a8f0adcf755a57a1e6cf4f5e463f07878e622 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 23 Dec 2024 18:23:55 +0800 Subject: [PATCH] modify tienlen --- gamesrv/tienlen/scenepolicy_tienlen.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gamesrv/tienlen/scenepolicy_tienlen.go b/gamesrv/tienlen/scenepolicy_tienlen.go index e876f3e..973c0c2 100644 --- a/gamesrv/tienlen/scenepolicy_tienlen.go +++ b/gamesrv/tienlen/scenepolicy_tienlen.go @@ -4,7 +4,6 @@ import ( "fmt" "math" "math/rand" - "slices" "sort" "time" @@ -2678,14 +2677,6 @@ func (this *SceneBilledStateTienLen) OnEnter(s *base.Scene) { } } } - - pack.WinSnids = sceneEx.winSnids - for _, v := range pack.Datas { - if !slices.Contains(pack.WinSnids, v.GetSnId()) { - pack.WinSnids = append(pack.WinSnids, v.GetSnId()) - break - } - } proto.SetDefaults(pack) s.Broadcast(int(tienlen.TienLenPacketID_PACKET_SCTienLenGameBilled), pack, 0) logger.Logger.Trace("TienLenPacketID_PACKET_SCTienLenGameBilled gameFreeId:", sceneEx.GetGameFreeId(), ";pack:", pack)