Skip to content
Snippets Groups Projects
Commit aee06b88 authored by dg's avatar dg
Browse files

Modules can add no_funfacts=true to their init.lua to remove funfacts

git-svn-id: http://svn.net-core.org/repos/t-engine4@6466 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7b51ef83
No related branches found
No related tags found
No related merge requests found
......@@ -519,7 +519,7 @@ function _M:loadScreen(mod)
end) end
local ffw = math.ceil(sw / 4)
if ffdata then
if ffdata and not mod.no_funfacts then
local str = self:selectFunFact(ffdata)
if str then pcall(function()
local text, _, tw = font:draw(str, ffw, 255, 255, 255)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment