竞技馆
This commit is contained in:
parent
9f490a7aca
commit
04a0772415
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue