fix AA模式房主离开不解散房间
This commit is contained in:
parent
6a84a97c94
commit
1589aabbb8
|
@ -292,7 +292,7 @@ func (this *TienLenSceneData) OnPlayerLeave(p *base.Player, reason int) {
|
||||||
this.SceneDestroy(true)
|
this.SceneDestroy(true)
|
||||||
}
|
}
|
||||||
// 房主离开解散房间
|
// 房主离开解散房间
|
||||||
if !this.GetDestroyed() && this.IsCustom() {
|
if !this.GetDestroyed() && this.IsCustom() && this.GetCustom().GetCostType() == 2 {
|
||||||
var has bool
|
var has bool
|
||||||
for _, v := range this.players {
|
for _, v := range this.players {
|
||||||
if v != nil && this.GetCreator() == v.SnId {
|
if v != nil && this.GetCreator() == v.SnId {
|
||||||
|
|
|
@ -2944,7 +2944,7 @@ func (this *SceneBilledStateTienLen) OnLeave(s *base.Scene) {
|
||||||
s.TryDismissRob()
|
s.TryDismissRob()
|
||||||
}
|
}
|
||||||
|
|
||||||
if s.IsCustom() && s.GetCreator() > 0 {
|
if s.IsCustom() && s.GetCreator() > 0 && s.GetCustom().GetCostType() == 2 {
|
||||||
// 房主离开房间,解散房间
|
// 房主离开房间,解散房间
|
||||||
var has bool
|
var has bool
|
||||||
for _, v := range s.Players {
|
for _, v := range s.Players {
|
||||||
|
|
Loading…
Reference in New Issue