OpenTTD/src/script
Patric Stout e3c639a09f Remove: ENABLE_NETWORK switch
This switch has been a pain for years. Often disabling broke
compilation, as no developer compiles OpenTTD without, neither do
any of our official binaries.

Additionaly, it has grown so hugely in our codebase, that it
clearly shows that the current solution was a poor one. 350+
instances of "#ifdef ENABLE_NETWORK" were in the code, of which
only ~30 in the networking code itself. The rest were all around
the code to do the right thing, from GUI to NewGRF.

A more proper solution would be to stub all the functions, and
make sure the rest of the code can simply assume network is
available. This was also partially done, and most variables were
correct if networking was disabled. Despite that, often the #ifdefs
were still used.

With the recent removal of DOS, there is also no platform anymore
which we support where networking isn't working out-of-the-box.

All in all, it is time to remove the ENABLE_NETWORK switch. No
replacement is planned, but if you feel we really need this option,
we welcome any Pull Request which implements this in a way that
doesn't crawl through the code like this diff shows we used to.
2019-03-20 19:24:55 +01:00
..
api Remove: ENABLE_NETWORK switch 2019-03-20 19:24:55 +01:00
script_config.cpp Fix #6892: [Script] CONFIG_RANDOM did not use the full parameter range (#6902) 2018-09-20 22:31:38 +02:00
script_config.hpp Change: Allow AI companies to start immediately. 2019-02-02 16:37:11 +00:00
script_fatalerror.hpp (svn r23358) -Codechange: move AI_FatalError to Script_FatalError (and to its own file) 2011-11-29 23:21:13 +00:00
script_info.cpp (svn r26771) -Cleanup: remove OTTD2SQ and SQ2OTTD 2014-09-06 17:30:33 +00:00
script_info.hpp (svn r26057) -Fix: a number of possibly uninitialised variables 2013-11-23 13:12:19 +00:00
script_info_dummy.cpp Fix: Remove various dead or unnecessary assignments 2018-10-31 12:41:49 +01:00
script_instance.cpp (svn r26785) -Fix [Squirrel]: loading a value saved as boolean caused it to be of type integer instead of boolean 2014-09-07 09:30:57 +00:00
script_instance.hpp (svn r25342) -Add: StoryPage data structures and GS API 2013-06-09 12:19:09 +00:00
script_scanner.cpp Remove: ENABLE_NETWORK switch 2019-03-20 19:24:55 +01:00
script_scanner.hpp (svn r26617) -Fix [FS#5973]: [Script] Loading/parsing of info .nuts was done in the same VM, causing e.g. constants to break the loading of info of other scripts 2014-05-25 19:53:46 +00:00
script_storage.hpp (svn r26057) -Fix: a number of possibly uninitialised variables 2013-11-23 13:12:19 +00:00
script_suspend.hpp (svn r23360) -Codechange: move AIInstance to ScriptInstance, making it reusable by other script API instances 2011-11-29 23:21:33 +00:00
squirrel.cpp Fix 6accbf9: Silence warnings about unused fread() result 2019-01-05 17:16:53 +01:00
squirrel.hpp (svn r26771) -Cleanup: remove OTTD2SQ and SQ2OTTD 2014-09-06 17:30:33 +00:00
squirrel_class.hpp (svn r23651) -Feature: [NoGo] GSText now accepts string arguments as parameters to the constructor 2011-12-21 14:55:28 +00:00
squirrel_helper.hpp (svn r26774) -Cleanup [Squirrel]: remove _SC macro 2014-09-06 17:46:56 +00:00
squirrel_helper_type.hpp (svn r22406) -Document: some more "random-ish" tidbits 2011-05-01 19:51:52 +00:00
squirrel_std.cpp (svn r26782) -Fix (r26781): was in the wrong folder when commiting 2014-09-06 20:22:59 +00:00
squirrel_std.hpp (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 2013-01-08 22:46:42 +00:00