fix analysis eval gauge orientation

This commit is contained in:
Thibault Duplessis 2017-05-30 08:04:56 +02:00
parent bb5499f465
commit e1b4f74ac7
2 changed files with 2 additions and 4 deletions

View file

@ -10,7 +10,7 @@ net {
ip = "5.196.91.160"
asset {
domain = ${net.domain}
version = 1724
version = 1728
}
email = "contact@lichess.org"
crawlable = false

View file

@ -119,9 +119,7 @@ module.exports = function(opts) {
this.bottomColor = function() {
return this.vm.flip ? opposite(this.data.orientation) : this.data.orientation;
}.bind(this);
this.getOrientation = function() {
return this.data.orientation;
}.bind(this);
this.getOrientation = this.bottomColor; // required by ui/ceval
this.turnColor = function() {
return this.vm.node.ply % 2 === 0 ? 'white' : 'black';