diff options
author | sfan5 <sfan5@live.de> | 2017-09-11 16:25:20 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:31:59 +0200 |
commit | 5b2461c713889b9832f5b99c85abf87e5d494242 (patch) | |
tree | 641c2f0b45c7518019a3b60de99dd142bdaa36bf /builtin/mainmenu/common.lua | |
parent | e9087d1be7e24557a268e77b3005052058d89adb (diff) | |
download | minetest-5b2461c713889b9832f5b99c85abf87e5d494242.tar.gz minetest-5b2461c713889b9832f5b99c85abf87e5d494242.tar.bz2 minetest-5b2461c713889b9832f5b99c85abf87e5d494242.zip |
Fix core.wrap_text and make its behaviour consistent with the docs
Code based on initial implementation by @dsohler.
Diffstat (limited to 'builtin/mainmenu/common.lua')
-rw-r--r-- | builtin/mainmenu/common.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua index fa7ae583b..7eb941775 100644 --- a/builtin/mainmenu/common.lua +++ b/builtin/mainmenu/common.lua @@ -250,7 +250,7 @@ end -------------------------------------------------------------------------------- function text2textlist(xpos, ypos, width, height, tl_name, textlen, text, transparency) - local textlines = core.wrap_text(text, textlen) + local textlines = core.wrap_text(text, textlen, true) local retval = "textlist[" .. xpos .. "," .. ypos .. ";" .. width .. "," .. height .. ";" .. tl_name .. ";" |