fix bounding box size for small font

This commit is contained in:
Kistaro Windrider 2024-02-05 11:29:31 -08:00
parent 7b01fe5d20
commit bf530ddb83
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -580,7 +580,7 @@ function collides(b1, b2)
end end
function wordtarget:update() function wordtarget:update()
if collides({self.x, self.y, self.w, 7}, self.phin:box()) then if collides({self.x, self.y, self.w, 6}, self.phin:box()) then
self:on_hit() self:on_hit()
return true return true
end end