diff --git a/modules/parkour/module.go b/modules/parkour/module.go index a44cd0460..24ec2506a 100644 --- a/modules/parkour/module.go +++ b/modules/parkour/module.go @@ -103,9 +103,8 @@ func (this *Parkour) createbattle(red []*pb.DBRaceMember, bule []*pb.DBRaceMembe Bulemember: bule, } battle = &RaceItem{ - Id: race.Id, - Session: make(map[string]comm.IUserSession), - overtimer: timewheel.Add(time.Minute*3, this.overtimer, race.Id), + Id: race.Id, + Session: make(map[string]comm.IUserSession), } for _, v := range red { @@ -184,7 +183,7 @@ func (this *Parkour) startbattle(id string) { for _, v := range battle.Session { sessions = append(sessions, v) } - + battle.overtimer = timewheel.Add(time.Duration(this.ModuleTools.GetGlobalConf().BuzkashiTime)*time.Second, this.overtimer, battle.Id) if err = this.SendMsgToSession(string(this.GetType()), "racestart", &pb.ParkourRaceStartPush{ Countdown: 3, }, sessions...); err != nil {