minetest-mods / digilines

Digilines is a mod for minetest which adds data bus wires
Other
40 stars 37 forks source link

LCD line length limits are not enforced properly #63

Closed Hawk777 closed 3 years ago

Hawk777 commented 3 years ago

Due to the test string.len(line)+string.len(word) < LINE_LENGTH, if the first word is more than 11 characters (not 12!) long, then the first line is actually rendered completely empty, with the first word pushed to the second line. Subsequent lines always consume at least one word, even if the words are very long, and are also able to properly display words up to 12 characters long.

PeterNerlich commented 3 years ago

This is fixed in my rework of the whole line breaking algorithm in #64.

Hawk777 commented 3 years ago

Indeed it is, thank you.