1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Various random code cleanups

This commit is contained in:
sfan5 2025-03-01 11:53:37 +01:00
parent 358658fa34
commit 7892541383
73 changed files with 216 additions and 285 deletions

View file

@ -734,7 +734,7 @@ void TextDrawer::place(const core::rect<s32> &dest_rect)
ymargin = p.margin;
// Place non floating stuff
std::vector<ParsedText::Element>::iterator el = p.elements.begin();
auto el = p.elements.begin();
while (el != p.elements.end()) {
// Determine line width and y pos
@ -807,8 +807,8 @@ void TextDrawer::place(const core::rect<s32> &dest_rect)
el++;
}
std::vector<ParsedText::Element>::iterator linestart = el;
std::vector<ParsedText::Element>::iterator lineend = p.elements.end();
auto linestart = el;
auto lineend = p.elements.end();
// First pass, find elements fitting into line
// (or at least one element)