1
This commit is contained in:
parent
5dbdc24de5
commit
0051c43d9e
@ -19,6 +19,7 @@ const (
|
||||
ROOM_DISBAND_DEFAULT_REASON = iota
|
||||
ROOM_DISBAND_1_REASON
|
||||
ROOM_DISBAND_NO_NEXT_OWNER_REASON
|
||||
ROOM_DISBAND_OWNER_OFFLINE_REASON
|
||||
)
|
||||
|
||||
const ROOM_MIN_START_TEAM_NUM = 1
|
||||
|
@ -318,6 +318,11 @@ func (this *room) fillMFCurrentRoom(hum common.Player, pb *cs.MFCurrentRoom) {
|
||||
}
|
||||
|
||||
func (this *room) OnPlayerOffline(hum common.Player) {
|
||||
if this.isOwner(hum) {
|
||||
if this.roomState == ROOM_INIT_STATE {
|
||||
this.doDisband(ROOM_DISBAND_OWNER_OFFLINE_REASON)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (this *room) OnPlayerOnline(hum common.Player) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user