Fix #7050: Missing guard around network chat message function for compiling with networking disabled. (#7058)

This commit is contained in:
PeterN 2019-01-13 16:50:21 +00:00 committed by Charles Pigott
parent 750927372f
commit 89f0017a67
1 changed files with 2 additions and 0 deletions

View File

@ -3100,11 +3100,13 @@ void UpdateWindows()
CallWindowRealtimeTickEvent(delta_ms);
#ifdef ENABLE_NETWORKING
static GUITimer network_message_timer = GUITimer(1);
if (network_message_timer.Elapsed(delta_ms)) {
network_message_timer.SetInterval(1000);
NetworkChatMessageLoop();
}
#endif
Window *w;