From c398ba448485e864decffeeb18ae7f3b0ce32cc6 Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 12 Jun 2019 00:34:32 +0800 Subject: [PATCH] Fix server only build --- src/states_screens/online/networking_lobby.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/states_screens/online/networking_lobby.cpp b/src/states_screens/online/networking_lobby.cpp index 603cb6eb4..7024dfb67 100644 --- a/src/states_screens/online/networking_lobby.cpp +++ b/src/states_screens/online/networking_lobby.cpp @@ -232,6 +232,7 @@ void NetworkingLobby::init() // ---------------------------------------------------------------------------- void NetworkingLobby::addMoreServerInfo(core::stringw info) { +#ifndef SERVER_ONLY const unsigned box_width = m_text_bubble->getDimension().Width; const float box_height = m_text_bubble->getDimension().Height; // For future copy text from lobby chat @@ -259,7 +260,7 @@ void NetworkingLobby::addMoreServerInfo(core::stringw info) m_text_bubble->getIrrlichtElement(); st->setUseGlyphLayoutsOnly(true); st->setGlyphLayouts(m_server_info); - +#endif } // addMoreServerInfo // ----------------------------------------------------------------------------