mirror of
https://github.com/minetest-mods/digilines.git
synced 2024-09-27 22:30:22 +02:00
display unknown symbols as spaces
old behaviour: unknown symbols are ignored new behaviour: unknown symbols are not displayed but can be used for formatting
This commit is contained in:
parent
021c521c65
commit
45aa9c4a67
3
lcd.lua
3
lcd.lua
|
@ -73,6 +73,9 @@ local generate_line = function(s, ypos)
|
||||||
i = i + 2
|
i = i + 2
|
||||||
else
|
else
|
||||||
print("[digilines] W: LCD: unknown symbol in '"..s.."' at "..i)
|
print("[digilines] W: LCD: unknown symbol in '"..s.."' at "..i)
|
||||||
|
if charmap[" "] ~= nil then
|
||||||
|
file = charmap[" "]
|
||||||
|
end
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
if file ~= nil then
|
if file ~= nil then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user