1
This commit is contained in:
parent
9a7e9d19c4
commit
7d303e8026
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user