This commit is contained in:
aozhiwei 2024-03-14 17:51:45 +08:00
parent 36cb9df79f
commit c4f90d2c3b

View File

@ -126,6 +126,7 @@ func (this *team) StartGame() {
if !this.Started() && this.CanStartGame(this.owner) { if !this.Started() && this.CanStartGame(this.owner) {
this.state = constant.TEAM_STATE_STARTED this.state = constant.TEAM_STATE_STARTED
this.startTime = f5.GetApp().GetNowSeconds() this.startTime = f5.GetApp().GetNowSeconds()
this.stateNotifyMsg.State = proto.Int32(this.state)
this.genStartGameInfo() this.genStartGameInfo()
f5.GetTimer().SetInterval(1000, func(e int32, args *q5.Args) { f5.GetTimer().SetInterval(1000, func(e int32, args *q5.Args) {
if e == q5.TIMER_EXEC_EVENT { if e == q5.TIMER_EXEC_EVENT {