Disable message queue in server only
This commit is contained in:
parent
c8a42fd355
commit
24b3e09429
@ -292,8 +292,10 @@ void updatePosition()
|
||||
*/
|
||||
void add(MessageType mt, const irr::core::stringw &message)
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
Message *m = new TextMessage(mt, message);
|
||||
privateAdd(m);
|
||||
#endif
|
||||
} // add
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -305,6 +307,7 @@ void add(MessageType mt, const irr::core::stringw &message)
|
||||
*/
|
||||
void update(float dt)
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
if (!g_container)
|
||||
g_container = new SkinWidgetContainer();
|
||||
|
||||
@ -325,7 +328,7 @@ void update(float dt)
|
||||
current->remove();
|
||||
}
|
||||
g_all_messages.unlock();
|
||||
|
||||
#endif
|
||||
} // update
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@ -337,7 +340,9 @@ void update(float dt)
|
||||
*/
|
||||
void showProgressBar(int progress, const wchar_t* msg)
|
||||
{
|
||||
#ifndef SERVER_ONLY
|
||||
g_progress_bar_msg.setProgress(progress, msg);
|
||||
#endif
|
||||
} // showProgressBar
|
||||
|
||||
} // namespace GUIEngine
|
||||
|
Loading…
Reference in New Issue
Block a user