From 5629f5439be3c85e2e4165a359c101d1eada2eb5 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 6 Nov 2023 16:12:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=92=E5=BD=92=E6=B6=88=E9=99=A4=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=85=83=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/xxlPlat.go | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/modules/entertainment/xxlPlat.go b/modules/entertainment/xxlPlat.go index 836958e20..95f8454c0 100644 --- a/modules/entertainment/xxlPlat.go +++ b/modules/entertainment/xxlPlat.go @@ -1125,13 +1125,19 @@ func (this *MapData) SpecialElem(id int, s int32) (x map[int]struct{}) { } } - // for k := range x { - // if this.Plat[k].Special != 0 { - // for key := range this.SpecialElem(k, this.Plat[k].Special) { // 递归调用 - // x[key] = struct{}{} - // } - // } - // } + for k := range x { + if k == id { + continue + } + sp := this.Plat[k].Special + if sp != 0 { + this.Plat[k].Special = 0 + ids := this.SpecialElem(k, sp) // 递归调用 + for key := range ids { + x[key] = struct{}{} + } + } + } return }