diff options
author | heav <hheav3@gmail.com> | 2023-04-04 03:01:00 +0000 |
---|---|---|
committer | heav <hheav3@gmail.com> | 2023-04-04 03:01:00 +0000 |
commit | 480f2d226e987b7133655c4a09d1886605ad39e9 (patch) | |
tree | aeaab0b400f27bbed1748b8de3747d237adcaf0c | |
parent | 1afe79eac12e20a6a5783230f6ef30e5befeea52 (diff) |
i'm perplexed.
-rw-r--r-- | game/gfx.lua | 2 |
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) |