From 3e71a1cfb0694d05ab6bbf76f280a5d6ccde881a Mon Sep 17 00:00:00 2001 From: Nathan Date: Mon, 7 Oct 2024 19:45:41 +0100 Subject: [PATCH] Fix drawCard method. Used passed W/H --- public/board.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/board.js b/public/board.js index 2fb7155..18d9b89 100644 --- a/public/board.js +++ b/public/board.js @@ -79,8 +79,8 @@ class Board{ name: name, x: positionX, y: positionY, - width: cardWidth/2, - height: cardHeight/2, + width: width, + height: height, fillStyle: fill });