From c7cc910827c12ab53e8cde4850d4ae90376efa1f Mon Sep 17 00:00:00 2001 From: dcwen Date: Fri, 16 Jun 2023 11:44:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A9=E5=A4=A7=E7=82=B9=E5=87=BB=E8=8C=83?= =?UTF-8?q?=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/words.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/words.go b/game/words.go index dee874b..c702f5d 100644 --- a/game/words.go +++ b/game/words.go @@ -54,7 +54,7 @@ func (this_ *Words) In(currentX, currentY float64) bool { wordX := this_.X + width wordY := this_.Y + width - if !(currentX >= this_.X-width && currentX <= wordX) { + if !(currentX >= this_.X-width-22 && currentX <= wordX) { return false } if !(currentY >= this_.Y-width && currentY <= wordY) {