forked from Mineclonia/Mineclonia
Compare commits
1 Commits
master
...
Fix_sign_a
Author | SHA1 | Date |
---|---|---|
MysticTempest | 71f04b95da |
|
@ -65,6 +65,10 @@ local string_to_line_array = function(str)
|
|||
current = current + 1
|
||||
tab[current] = ""
|
||||
linechar = 1
|
||||
elseif linechar == LINE_LENGTH + 1 then --proper newline long text
|
||||
current = current + 1
|
||||
tab[current] = char
|
||||
linechar = 1
|
||||
else
|
||||
tab[current] = tab[current]..char
|
||||
linechar = linechar + 1
|
||||
|
@ -92,7 +96,7 @@ local generate_line = function(s, ypos)
|
|||
local width = 0
|
||||
local chars = 0
|
||||
local printed_char_width = CHAR_WIDTH + 1
|
||||
while chars < LINE_LENGTH and i <= #s do
|
||||
while chars < LINE_LENGTH + 1 and i <= #s do
|
||||
local file = nil
|
||||
-- Get and render character
|
||||
if charmap[s:sub(i, i)] ~= nil then
|
||||
|
|
Loading…
Reference in New Issue