1
0
Fork 0

(svn r27602) -Fix [FS#6481]: Compilation with --disable-network. (Deranged)

release/1.7
frosch 2016-06-17 18:56:19 +00:00
parent 403c393ef0
commit d874cef678
1 changed files with 5 additions and 1 deletions

View File

@ -35,7 +35,9 @@
#include "window_func.h" #include "window_func.h"
#include "debug.h" #include "debug.h"
#include "game/game_text.hpp" #include "game/game_text.hpp"
#ifdef ENABLE_NETWORK
# include "network/network_content_gui.h" # include "network/network_content_gui.h"
#endif /* ENABLE_NETWORK */
#include <stack> #include <stack>
#include "table/strings.h" #include "table/strings.h"
@ -1815,7 +1817,9 @@ bool ReadLanguagePack(const LanguageMetadata *lang)
SortIndustryTypes(); SortIndustryTypes();
BuildIndustriesLegend(); BuildIndustriesLegend();
SortNetworkLanguages(); SortNetworkLanguages();
#ifdef ENABLE_NETWORK
BuildContentTypeStringList(); BuildContentTypeStringList();
#endif /* ENABLE_NETWORK */
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // Build vehicle window. InvalidateWindowClassesData(WC_BUILD_VEHICLE); // Build vehicle window.
InvalidateWindowClassesData(WC_TRAINS_LIST); // Train group window. InvalidateWindowClassesData(WC_TRAINS_LIST); // Train group window.
InvalidateWindowClassesData(WC_ROADVEH_LIST); // Road vehicle group window. InvalidateWindowClassesData(WC_ROADVEH_LIST); // Road vehicle group window.