From 579e52661579fb2da4066c8772d7712743e57504 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 21 Mar 2019 11:25:14 +0100 Subject: [PATCH] Signs: Add replacement character --- mods/ITEMS/mcl_signs/init.lua | 6 +++++- mods/ITEMS/mcl_signs/textures/_rc.png | Bin 0 -> 902 bytes 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 mods/ITEMS/mcl_signs/textures/_rc.png diff --git a/mods/ITEMS/mcl_signs/init.lua b/mods/ITEMS/mcl_signs/init.lua index f83e6339..e878d16e 100644 --- a/mods/ITEMS/mcl_signs/init.lua +++ b/mods/ITEMS/mcl_signs/init.lua @@ -85,6 +85,7 @@ local generate_line = function(s, ypos) local printed_char_width = CHAR_WIDTH + 1 while chars <= LINE_LENGTH and i <= #s do local file = nil + -- Get and render character if charmap[s:sub(i, i)] ~= nil then file = charmap[s:sub(i, i)] i = i + 1 @@ -92,8 +93,11 @@ local generate_line = function(s, ypos) file = charmap[s:sub(i, i + 1)] i = i + 2 else - minetest.log("warning", "[mcl_signs] Unknown symbol in '"..s.."' at "..i.." (probably "..s:sub(i, i)..")") + -- No character image found. + -- Use replacement character: + file = "_rc" i = i + 1 + minetest.log("verbose", "[mcl_signs] Unknown symbol in '"..s.."' at "..i) end if file ~= nil then width = width + printed_char_width diff --git a/mods/ITEMS/mcl_signs/textures/_rc.png b/mods/ITEMS/mcl_signs/textures/_rc.png new file mode 100644 index 0000000000000000000000000000000000000000..8b66915e65362b2aad96f275bd0c7d9de2319bcc GIT binary patch literal 902 zcmeAS@N?(olHy`uVBq!ia0y~yU|?lnVBq0kV_;xdl~AtBz`%5^DkP#LD6w3jpeR2r zGbdG{q_QAYA+;hije()!*4t^(lkO<+xc-lHoz|eza-_&$#;P|8r_Zw*|Mf~=_34L9 zaP9^jmOIJ??Vpc-7u@$y>7vM_SiZ)4v0-a%gZeS?vEn#s2L?;Q?JpZl#?V|TnS|LL3iFIMcm z_PFZnuQ@zPC9XCP4=kVHa;LUWX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