This commit is contained in:
aozhiwei 2024-09-20 15:15:29 +08:00
parent 6b85d6913a
commit dea638fe0c
2 changed files with 4 additions and 1 deletions

View File

@ -92,6 +92,7 @@ func (this *playerMgr) CMLogin(hdr *f5.MsgHdr, msg *cs.CMLogin) {
rspMsg.TeamUuid = proto.String(oldHum.GetTeam().GetTeamUuid())
oldHum.reBind(hdr.GetSocket(), msg.GetSessionId())
oldHum.SendMsg(&rspMsg)
GetHistoryMgr().PushLastBattleInfo(oldHum)
return
}
}
@ -328,6 +329,7 @@ func (this *playerMgr) CMReconnect(hdr *f5.MsgHdr, msg *cs.CMReconnect) {
}
hum.reBind(hdr.GetSocket(), msg.GetSessionId())
GetWspListener().SendProxyMsg(hdr.Conn, hdr.SocketHandle, rspMsg)
GetHistoryMgr().PushLastBattleInfo(hum)
}
func (this *playerMgr) OnSocketClose(conn f5.WspCliConn) {

View File

@ -6,6 +6,7 @@ import (
"cs"
"main/common"
"main/mt"
. "main/global"
)
type teamMgr struct {
@ -66,7 +67,7 @@ func (this *teamMgr) GetTeamByUuid(teamUuid string) common.Team {
}
func (this *teamMgr) OnEnterNewUser(hum common.Player) {
GetHistoryMgr().PushLastBattleInfo(hum)
}
func (this *teamMgr) removeTeam(teamUuid string) {