From 89f0017a674c40afb4a7abbee973d86f678f4e39 Mon Sep 17 00:00:00 2001 From: PeterN Date: Sun, 13 Jan 2019 16:50:21 +0000 Subject: Fix #7050: Missing guard around network chat message function for compiling with networking disabled. (#7058) --- src/window.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/window.cpp b/src/window.cpp index cd7511353..d67c7f2f7 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -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; -- cgit v1.2.3-70-g09d2