summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheav <hheav3@gmail.com>2023-04-04 03:01:00 +0000
committerheav <hheav3@gmail.com>2023-04-04 03:01:00 +0000
commit480f2d226e987b7133655c4a09d1886605ad39e9 (patch)
treeaeaab0b400f27bbed1748b8de3747d237adcaf0c
parent1afe79eac12e20a6a5783230f6ef30e5befeea52 (diff)
i'm perplexed.
-rw-r--r--game/gfx.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/gfx.lua b/game/gfx.lua
index c74bc64..b0b0db2 100644
--- a/game/gfx.lua
+++ b/game/gfx.lua
@@ -185,7 +185,7 @@ function M:draw_game_text()
love.graphics.setColor(1, 1, 1)
end
local j = 0
- for text in obj.text:gfind("[^\n]+") do
+ for text in obj.text:gmatch("[^\n]+") do
local w = font:getWidth(text)
local x = text_end_x - w
love.graphics.print(text, x, y + font:getHeight() * j)