diff options
author | sfan5 <sfan5@live.de> | 2017-09-11 16:25:20 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-09-12 19:33:00 +0200 |
commit | 6fa2f6b4aa42683fc85a6ce4a2a03a4b47c36974 (patch) | |
tree | 3694bada19cc38cc32a5616f7db4e9b0207b3a53 /builtin/mainmenu/common.lua | |
parent | 17fd5fe9358615633a04d7a3941b444a8ce5f199 (diff) | |
download | minetest-6fa2f6b4aa42683fc85a6ce4a2a03a4b47c36974.tar.gz minetest-6fa2f6b4aa42683fc85a6ce4a2a03a4b47c36974.tar.bz2 minetest-6fa2f6b4aa42683fc85a6ce4a2a03a4b47c36974.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 .. ";" |