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
|
current = current + 1
|
||||||
tab[current] = ""
|
tab[current] = ""
|
||||||
linechar = 1
|
linechar = 1
|
||||||
|
elseif linechar == LINE_LENGTH + 1 then --proper newline long text
|
||||||
|
current = current + 1
|
||||||
|
tab[current] = char
|
||||||
|
linechar = 1
|
||||||
else
|
else
|
||||||
tab[current] = tab[current]..char
|
tab[current] = tab[current]..char
|
||||||
linechar = linechar + 1
|
linechar = linechar + 1
|
||||||
|
@ -92,7 +96,7 @@ local generate_line = function(s, ypos)
|
||||||
local width = 0
|
local width = 0
|
||||||
local chars = 0
|
local chars = 0
|
||||||
local printed_char_width = CHAR_WIDTH + 1
|
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
|
local file = nil
|
||||||
-- Get and render character
|
-- Get and render character
|
||||||
if charmap[s:sub(i, i)] ~= nil then
|
if charmap[s:sub(i, i)] ~= nil then
|
||||||
|
|
Loading…
Reference in New Issue