summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-01-13 16:50:21 +0000
committerCharles Pigott <charlespigott@googlemail.com>2019-01-13 16:50:21 +0000
commit89f0017a674c40afb4a7abbee973d86f678f4e39 (patch)
tree24eccb5495510d249a40e031f4a5a78fea9b379e /src/window.cpp
parent750927372f7d10f648aa2015193d1f7f800f3a69 (diff)
downloadopenttd-89f0017a674c40afb4a7abbee973d86f678f4e39.tar.xz
Fix #7050: Missing guard around network chat message function for compiling with networking disabled. (#7058)
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp2
1 files changed, 2 insertions, 0 deletions
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;