From 7230d22c261f5bc6b2fcbe264174cb9848b62aec Mon Sep 17 00:00:00 2001 From: ninetailsrabbit Date: Thu, 6 Jun 2024 14:27:51 +0100 Subject: [PATCH] minor fix on cell position calculation to display on UI --- Match3Maker/src/components/Board.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Match3Maker/src/components/Board.cs b/Match3Maker/src/components/Board.cs index 57638f8..1014d75 100644 --- a/Match3Maker/src/components/Board.cs +++ b/Match3Maker/src/components/Board.cs @@ -188,7 +188,7 @@ public void Unlock() { } public Vector2 CellPosition(GridCell cell) - => new(CellSize.X * cell.Column + (Offset.X * cell.Column), CellSize.Y * cell.Row + (Offset.Y * cell.Row)); + => new(CellSize.X * cell.Column + Offset.X, CellSize.Y * cell.Row + Offset.Y); public Board PrepareGridCells(bool overwrite = false) {