diff options
author | frosch <frosch@openttd.org> | 2016-06-17 18:56:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2016-06-17 18:56:19 +0000 |
commit | d874cef67821649a24d8abba4da69407079d1270 (patch) | |
tree | 998d50a7772a1cee1bdc44e370d6236b83dc7693 | |
parent | 403c393ef0a2aaca8f0fe6fd902554ae799fec7e (diff) | |
download | openttd-d874cef67821649a24d8abba4da69407079d1270.tar.xz |
(svn r27602) -Fix [FS#6481]: Compilation with --disable-network. (Deranged)
-rw-r--r-- | src/strings.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index d2ce762b7..8cd071d0b 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -35,7 +35,9 @@ #include "window_func.h" #include "debug.h" #include "game/game_text.hpp" -#include "network/network_content_gui.h" +#ifdef ENABLE_NETWORK +# include "network/network_content_gui.h" +#endif /* ENABLE_NETWORK */ #include <stack> #include "table/strings.h" @@ -1815,7 +1817,9 @@ bool ReadLanguagePack(const LanguageMetadata *lang) SortIndustryTypes(); BuildIndustriesLegend(); SortNetworkLanguages(); +#ifdef ENABLE_NETWORK BuildContentTypeStringList(); +#endif /* ENABLE_NETWORK */ InvalidateWindowClassesData(WC_BUILD_VEHICLE); // Build vehicle window. InvalidateWindowClassesData(WC_TRAINS_LIST); // Train group window. InvalidateWindowClassesData(WC_ROADVEH_LIST); // Road vehicle group window. |