Add some Latin-1 characters for signs

This commit is contained in:
Wuzzy 2019-03-21 14:35:56 +01:00
parent 8019315eaa
commit 65a61398b5
29 changed files with 89 additions and 3 deletions

View file

@ -56,8 +56,7 @@ local string_to_line_array = function(str)
current = current + 1
tab[current] = ""
linechar = 1
-- This check cuts off overlong lines
elseif linechar <= LINE_LENGTH then
else
tab[current] = tab[current]..char
linechar = linechar + 1
end
@ -84,7 +83,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 and i <= #s do
local file = nil
-- Get and render character
if charmap[s:sub(i, i)] ~= nil then