Fix from coordinates for drop animation.
This commit is contained in:
parent
805851a7f7
commit
2eb6dbf7e1
@ -635,14 +635,8 @@ 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);
|
from_x = basis_x + (radius * 14);
|
||||||
//from_x = basis_x + (radius * 14);
|
from_y = basis_y - (9 - (2 * play.from)) * gui_scale;
|
||||||
from_x = to_x;
|
|
||||||
if((INTERFACE_DATA.player & 1) ^ INTERFACE_DATA.rotate == 0) {
|
|
||||||
from_y = basis_y - (4 * gui_scale);
|
|
||||||
} else {
|
|
||||||
from_y = basis_y + (12 * gui_scale);
|
|
||||||
}
|
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user