Изменения от Главреда ГитЖС | Changes of GitJS Glavred

This commit is contained in:
Главред | Glavred
2020-09-26 20:47:34 +03:00
parent f910244315
commit 3a1ca7d11e
2 changed files with 20 additions and 5 deletions

View File

@@ -50,8 +50,8 @@
позицияИндексаФишки = (индекс) =>
{
const x = индекс / 1000000;
const y = (индекс - x * 1000000) / 1000;
const x = Math.round(индекс / 1000000);
const y = Math.round((индекс - x * 1000000) / 1000);
const z = индекс - x * 1000000 - y * 1000;
return [x, y, z];
};