竞技馆

This commit is contained in:
sk 2024-09-02 14:35:10 +08:00
parent 9f490a7aca
commit 04a0772415
1 changed files with 3 additions and 0 deletions

View File

@ -422,6 +422,7 @@ func (this *Scene) PlayerEnter(p *Player, pos int, ischangeroom bool) bool {
}
this.gameSess.AddPlayer(p)
FirePlayerEnterScene(p, this)
this.sp.OnPlayerEnter(this, p)
return true
}
@ -507,6 +508,8 @@ func (this *Scene) lastScene(p *Player) {
}
func (this *Scene) DelPlayer(p *Player) bool {
FirePlayerLeaveScene(p, this)
this.sp.OnPlayerLeave(this, p)
if p.scene != this {
roomId := 0
if p.scene != nil {