diff --git a/gamesrv/action/action_game.go b/gamesrv/action/action_game.go index 8148257..761309f 100644 --- a/gamesrv/action/action_game.go +++ b/gamesrv/action/action_game.go @@ -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 } diff --git a/gamesrv/tienlen/scenedata_tienlen.go b/gamesrv/tienlen/scenedata_tienlen.go index 62c1ee3..0269621 100644 --- a/gamesrv/tienlen/scenedata_tienlen.go +++ b/gamesrv/tienlen/scenedata_tienlen.go @@ -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