竞技馆牌局记录

This commit is contained in:
sk 2024-09-07 10:46:34 +08:00
parent cb4b51b4aa
commit 1b67a44d63
2 changed files with 8 additions and 1 deletions

View File

@ -291,6 +291,13 @@ func CSDestroyRoom(s *netlib.Session, packetid int, data interface{}, sid int64)
send()
return nil
}
if scene.ExtraData != nil {
gs, ok := scene.ExtraData.(base.GameScene)
if ok {
gs.SceneDestroy(true)
return nil
}
}
scene.Destroy(true)
return nil
}

View File

@ -2105,7 +2105,7 @@ func (this *TienLenSceneData) SendFirstGiveTimeItem(p *base.Player) {
// SaveCustomLog 保存竞技馆对局记录
func (this *TienLenSceneData) SaveCustomLog() {
if this.CustomLogSave || !this.IsCustom() {
if this.CustomLogSave || !this.IsCustom() || this.NumOfGames == 0 {
return
}
this.CustomLogSave = true