This commit is contained in:
aozhiwei 2024-09-20 15:44:43 +08:00
parent 9a7e9d19c4
commit 7d303e8026

View File

@ -25,7 +25,9 @@ func (this *historyMgr) AddBattle(accountId string, mapId int32, modeId int32) {
u := this.getUser(accountId)
if u == nil {
u = new(user)
u.init()
u.accountId = accountId
this.userHash[accountId] = u
}
u.addBattle(mapId, modeId)
}
@ -47,6 +49,7 @@ func (this *historyMgr) PushLastBattleInfo(hum common.Player) {
if modeId == jccommon.MAP_MODE_CIRCUIT {
p.IntervalTime = proto.Int32(mt.Table.Config.Get().GetCircuitModeIntervalTime())
}
q5.AppendSlice(&msg.BattleList, p)
}
hum.SendMsg(msg)
}