Fix from coordinates for drop animation.
This commit is contained in:
parent
fa7202927e
commit
645ac599a7
@ -636,10 +636,6 @@ const INTERFACE = {
|
|||||||
// Lerp between pool and board positions.
|
// Lerp between pool and board positions.
|
||||||
case 1: {
|
case 1: {
|
||||||
let coord_from = HEX.tile_to_hex(play.from);
|
let coord_from = HEX.tile_to_hex(play.from);
|
||||||
if((INTERFACE_DATA.player & 1) ^ INTERFACE_DATA.rotate == 1) {
|
|
||||||
coord_from.x = 8 - coord_from.x;
|
|
||||||
coord_from.y = 8 - coord_from.y;
|
|
||||||
}
|
|
||||||
from_x = basis_x + (radius * 14);
|
from_x = basis_x + (radius * 14);
|
||||||
from_y = basis_y - (9 - (2 * coord_from.y)) * gui_scale;
|
from_y = basis_y - (9 - (2 * coord_from.y)) * gui_scale;
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user