From 9e04f4c7d094e842da193693adcd0decddcd94bb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 12 Jul 2024 15:34:18 +0800 Subject: [PATCH] 1 --- server/matchserver/team/matchmgr.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/matchserver/team/matchmgr.go b/server/matchserver/team/matchmgr.go index ce35ad86..9d76c0cc 100644 --- a/server/matchserver/team/matchmgr.go +++ b/server/matchserver/team/matchmgr.go @@ -12,6 +12,7 @@ type matchingInfo struct { matchTimerWp *f5.TimerWp matchOk* matchingInfo matchTick int64 + lastHasOnlinePlayerTick int64 } type matchMgr struct { @@ -35,6 +36,7 @@ func (this *matchMgr) addMatch(team *team) { m := &matchingInfo{} m.team = team m.addTick = q5.GetTickCount() + m.lastHasOnlinePlayerTick = q5.GetTickCount() m.entry.Init(m) m.matchTimerWp = f5.GetTimer().SetIntervalWp(1000, func (e int32, args* q5.Args) { if e == q5.TIMER_EXEC_EVENT {