Fix server only build

This commit is contained in:
CodingJellyfish 2024-05-01 16:04:39 +08:00
parent ff186339e1
commit f8a43b86ea

View File

@ -100,8 +100,9 @@ void BubbleWidget::updateForNewSize()
start:
IGUIFont* font = irrwidget->getActiveFont();
int text_height = font->getHeightPerLine();
int max_cluster = -1;
bool has_newline = false;
#ifndef SERVER_ONLY
int max_cluster = -1;
auto& glyph_layouts = irrwidget->getGlyphLayouts();
for (unsigned i = 0; i < glyph_layouts.size(); i++)
{
@ -132,7 +133,7 @@ start:
}
}
}
#endif
irrwidget->setText(getText());
text_height = irrwidget->getTextHeight();