From 1589aabbb84587fe3ddba08c105e68b3c1c16865 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Fri, 20 Dec 2024 13:03:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20AA=E6=A8=A1=E5=BC=8F=E6=88=BF=E4=B8=BB?= =?UTF-8?q?=E7=A6=BB=E5=BC=80=E4=B8=8D=E8=A7=A3=E6=95=A3=E6=88=BF=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/tienlen/scenedata_tienlen.go | 2 +- gamesrv/tienlen/scenepolicy_tienlen.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gamesrv/tienlen/scenedata_tienlen.go b/gamesrv/tienlen/scenedata_tienlen.go index b7e06a1..331a337 100644 --- a/gamesrv/tienlen/scenedata_tienlen.go +++ b/gamesrv/tienlen/scenedata_tienlen.go @@ -292,7 +292,7 @@ func (this *TienLenSceneData) OnPlayerLeave(p *base.Player, reason int) { this.SceneDestroy(true) } // 房主离开解散房间 - if !this.GetDestroyed() && this.IsCustom() { + if !this.GetDestroyed() && this.IsCustom() && this.GetCustom().GetCostType() == 2 { var has bool for _, v := range this.players { if v != nil && this.GetCreator() == v.SnId { diff --git a/gamesrv/tienlen/scenepolicy_tienlen.go b/gamesrv/tienlen/scenepolicy_tienlen.go index 01709e3..c182ddc 100644 --- a/gamesrv/tienlen/scenepolicy_tienlen.go +++ b/gamesrv/tienlen/scenepolicy_tienlen.go @@ -2944,7 +2944,7 @@ func (this *SceneBilledStateTienLen) OnLeave(s *base.Scene) { s.TryDismissRob() } - if s.IsCustom() && s.GetCreator() > 0 { + if s.IsCustom() && s.GetCreator() > 0 && s.GetCustom().GetCostType() == 2 { // 房主离开房间,解散房间 var has bool for _, v := range s.Players {