上传捕羊游戏结束时间配置
This commit is contained in:
parent
0f546d1be5
commit
c1cdd58324
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user