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 {