This commit is contained in:
aozhiwei 2024-03-14 11:34:59 +08:00
parent 42d39118ac
commit e6240ed65d

View File

@ -188,7 +188,7 @@ func (this *player) CMDisbandTeam(hdr *f5.MsgHdr, msg *cs.CMDisbandTeam) {
this.GetTeam().Disband()
}
this.SendMsg(rspMsg)
team.SendStateNotify()
team.SendUpdateNotify()
}
func (this *player) CMKickOut(hdr *f5.MsgHdr, msg *cs.CMKickOut) {
@ -201,7 +201,7 @@ func (this *player) CMKickOut(hdr *f5.MsgHdr, msg *cs.CMKickOut) {
this.GetTeam().KickOut(this, msg.GetTargetId())
}
this.SendMsg(rspMsg)
team.SendStateNotify()
team.SendUpdateNotify()
}
func (this *player) CMHandoverLeader(hdr *f5.MsgHdr, msg *cs.CMHandoverLeader) {
@ -214,7 +214,7 @@ func (this *player) CMHandoverLeader(hdr *f5.MsgHdr, msg *cs.CMHandoverLeader) {
this.GetTeam().HandoverLeader(this, msg.GetTargetId())
}
this.SendMsg(rspMsg)
team.SendStateNotify()
team.SendUpdateNotify()
}
func (this *player) CMStartGame(hdr *f5.MsgHdr, msg *cs.CMStartGame) {
@ -236,6 +236,7 @@ func (this *player) CMCancel(hdr *f5.MsgHdr, msg *cs.CMCancel) {
this.GetTeam().CancelMatch()
}
this.SendMsg(rspMsg)
this.GetTeam().SendUpdateNotify()
this.GetTeam().SendStateNotify()
}
@ -263,7 +264,7 @@ func (this *player) CMGrantInvitePermission(hdr *f5.MsgHdr, msg *cs.CMGrantInvit
}
}
this.SendMsg(rspMsg)
this.GetTeam().SendStateNotify()
this.GetTeam().SendUpdateNotify()
}
func newPlayer() *player {