This commit is contained in:
libccy 2017-05-17 12:04:40 +08:00
parent 978a773418
commit 10494aa3fc
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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();
}