diff --git a/game/game.js b/game/game.js index f4a04bc5b..bdce58a2a 100644 --- a/game/game.js +++ b/game/game.js @@ -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); diff --git a/mode/chess.js b/mode/chess.js index 4f66156f7..856dcdcd8 100644 --- a/mode/chess.js +++ b/mode/chess.js @@ -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(); }