|
|
@ -319,7 +319,7 @@ export class GameRoomTable extends Component { |
|
|
|
} |
|
|
|
/**创建新桌子 加入桌子 */ |
|
|
|
private roomJoinTable(data:any){ |
|
|
|
if(data.chairId == -1) return; |
|
|
|
if(data.chairId < 0) return; |
|
|
|
let isNew:boolean = true; |
|
|
|
const playerData:any = { |
|
|
|
chairId:data.chairId, |
|
|
@ -355,7 +355,7 @@ export class GameRoomTable extends Component { |
|
|
|
} |
|
|
|
/**玩家退出 */ |
|
|
|
private roomQuitTable(data:any){ |
|
|
|
if(data.chairId == -1) return; |
|
|
|
if(data.chairId < 0) return; |
|
|
|
if(this.allTableData.length <= 0) return; |
|
|
|
for(const item of this.allTableData){ |
|
|
|
if(item.tableId == data.tableID){ |
|
|
|