Only draw custom_text_center if it's not empty
@@ -516,6 +516,7 @@ void HudElements::show_fps_limit(){
}
void HudElements::custom_text_center(){
+ if (!HUDElements.params->custom_text_center.empty()){
ImGui::TableNextRow();
ImGui::PushFont(HUDElements.sw_stats->font1);
std::string text = HUDElements.params->custom_text_center;
@@ -524,6 +525,7 @@ void HudElements::custom_text_center(){
ImGui::NewLine();
ImGui::PopFont();
}
+}
void HudElements::custom_text(){
ImGui::TableNextRow();
