Skip to content

Commit

Permalink
Fix server only build
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed May 1, 2024
1 parent ff18633 commit f8a43b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/guiengine/widgets/bubble_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down Expand Up @@ -132,7 +133,7 @@ void BubbleWidget::updateForNewSize()
}
}
}

#endif
irrwidget->setText(getText());
text_height = irrwidget->getTextHeight();

Expand Down

0 comments on commit f8a43b8

Please sign in to comment.