tienlen房卡场不能中途离开

This commit is contained in:
sk 2024-11-14 14:26:31 +08:00
parent 1db15bd6f3
commit 10ce982a14
1 changed files with 3 additions and 0 deletions

View File

@ -591,6 +591,9 @@ func (this *SceneBaseStateTienLen) CanChangeTo(s base.SceneState) bool {
// 当前状态能否换桌
func (this *SceneBaseStateTienLen) CanChangeCoinScene(s *base.Scene, p *base.Player) bool {
if s.IsCustom() && s.GetNumOfGames() > 0 {
return false
}
return !p.IsGameing() || s.GetDestroyed() || !s.GetGaming()
}