diff options
author | PeterN <peter@fuzzle.org> | 2019-01-13 16:50:21 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-13 16:50:21 +0000 |
commit | 89f0017a674c40afb4a7abbee973d86f678f4e39 (patch) | |
tree | 24eccb5495510d249a40e031f4a5a78fea9b379e | |
parent | 750927372f7d10f648aa2015193d1f7f800f3a69 (diff) | |
download | openttd-89f0017a674c40afb4a7abbee973d86f678f4e39.tar.xz |
Fix #7050: Missing guard around network chat message function for compiling with networking disabled. (#7058)
-rw-r--r-- | src/window.cpp | 2 |
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; |