From ebe8adf85521aa22ca0e40083d613cc96966d03a Mon Sep 17 00:00:00 2001 From: kaeza Date: Sat, 19 Oct 2013 22:34:14 -0200 Subject: [PATCH] Small fixes to signs_lib. --- signs_lib.lua | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/signs_lib.lua b/signs_lib.lua index 1b9d7bb..7018e4e 100644 --- a/signs_lib.lua +++ b/signs_lib.lua @@ -116,7 +116,6 @@ local function build_char_db() if ch and w then local c = tonumber(ch) w = tonumber(w) - print("*** DEBUG: c="..tostring(c)..", w="..tostring(w)) if c and w then if c == 0 then LINE_HEIGHT = w @@ -135,14 +134,13 @@ local function build_char_db() -- (font probably was changed). print("*** DEBUG: Randomly checking cache.") if not check_random_chars() then - print("*** DEBUG: yey all ok.") + LINE_HEIGHT = nil + minetest.log("info", "[homedecor]" + .." Font seems to have changed." + .." Rebuilding cache." + ) end - print("*** DEBUG: something's fucked up; rebuild cache.") else - print("[homedecor] Warning:" - .." Could not find font line height in cached DB." - .." Trying brute force." - ) minetest.log("warning", "[homedecor]" .." Could not find font line height in cached DB." .." Trying brute force." @@ -157,7 +155,6 @@ local function build_char_db() total_width = 0 char_count = 0 - LINE_HEIGHT = nil for c = 32, 126 do local filename = FONT_FMT:format(TP, c)