From c26e57a972a45b78ebc9eef222dfa62124889f9a Mon Sep 17 00:00:00 2001 From: Kostya Date: Sun, 21 Jan 2024 12:32:43 +0300 Subject: [PATCH] =?UTF-8?q?=D1=8Dfixed=20bug=20with=20connect=20server,=20?= =?UTF-8?q?fixed=20findY/x=20for=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luckydiamond/src/pages/games-pages/SapergamePage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luckydiamond/src/pages/games-pages/SapergamePage.vue b/luckydiamond/src/pages/games-pages/SapergamePage.vue index f7417d7..346cf8d 100644 --- a/luckydiamond/src/pages/games-pages/SapergamePage.vue +++ b/luckydiamond/src/pages/games-pages/SapergamePage.vue @@ -230,8 +230,8 @@ export default { let findIndex, findX, findY if (X_Cordinates > 5) { - findIndex = Math.ceil(X_Cordinates / 5) * 5 - findY = Math.ceil(findIndex / 5) + findIndex = Math.ceil(X_Cordinates / 5) * 5 - 1 + findY = Math.ceil(findIndex / 5) - 1 findX = X_Cordinates % 5 console.log(findX, findY) }