This commit is contained in:
parent
978a773418
commit
10494aa3fc
|
@ -12830,9 +12830,9 @@
|
|||
},100);
|
||||
game.addVideo('smoothAvatar',this);
|
||||
},
|
||||
changeSeat:function(position){
|
||||
changeSeat:function(position,video){
|
||||
var player=this;
|
||||
game.addVideo('changeSeat',player,position);
|
||||
if(video!==false) game.addVideo('changeSeat',player,position);
|
||||
var rect1=player.getBoundingClientRect();
|
||||
player.style.transition='all 0s';
|
||||
ui.refresh(player);
|
||||
|
|
|
@ -615,7 +615,8 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
|||
var pos=y*ui.chesswidth+x;
|
||||
if(!lib.posmap[pos]){
|
||||
delete lib.posmap[this.dataset.position];
|
||||
this.dataset.position=pos;
|
||||
this.changeSeat(pos,false);
|
||||
// this.dataset.position=pos;
|
||||
lib.posmap[pos]=this;
|
||||
this.chessFocus();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue