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 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						a67ee02529 
					 
					
						
						
							
							Change: Heading for 1.10 now ( #7319 )  
						
						
						
						
					 
					
						2019-03-03 20:51:57 +01:00 
						 
				 
			
				
					
						
							
							
								Niels Martin Hansen 
							
						 
					 
					
						
						
							
						
						7e1e2756d4 
					 
					
						
						
							
							Add: Show performance of AI and GS in framerate window  
						
						
						
						
					 
					
						2019-02-23 14:29:07 +01:00 
						 
				 
			
				
					
						
							
							
								glx 
							
						 
					 
					
						
						
							
						
						c540d72445 
					 
					
						
						
							
							Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined macro _WIN32  
						
						
						
						
					 
					
						2018-12-27 18:09:16 +01:00 
						 
				 
			
				
					
						
							
							
								Charles Pigott 
							
						 
					 
					
						
						
							
						
						f5b1115039 
					 
					
						
						
							
							Doc: Lots and lots of doxymentation fixes  
						
						
						
						
					 
					
						2018-10-31 12:35:54 +01:00 
						 
				 
			
				
					
						
							
							
								gdinit 
							
						 
					 
					
						
						
							
						
						34b63930f5 
					 
					
						
						
							
							Fix: Typo in game.hpp  
						
						... 
						
						
						
						Just a typo fix in a code comment line. 
						
						
					 
					
						2018-04-23 23:14:23 +02:00 
						 
				 
			
				
					
						
							
							
								Pavel Stupnikov 
							
						 
					 
					
						
						
							
						
						6ff81b908e 
					 
					
						
						
							
							Feature  #6459 : API for querying network clients from GS ( #6736 )  
						
						
						
						
					 
					
						2018-04-22 15:42:29 +02:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						09d4735679 
					 
					
						
						
							
							(svn r27993) -Change: Heading for 1.9 now  
						
						
						
						
					 
					
						2018-03-14 19:36:41 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						b4b98e5165 
					 
					
						
						
							
							(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)  
						
						
						
						
					 
					
						2017-08-13 18:38:42 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						afcef7faa6 
					 
					
						
						
							
							(svn r27780) -Update: Numbers  
						
						
						
						
					 
					
						2017-03-11 20:50:26 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						a56e2bccd0 
					 
					
						
						
							
							(svn r27756) -Codechange: Add StringTab enum  
						
						
						
						
					 
					
						2017-02-26 19:40:53 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						0c7c0ada78 
					 
					
						
						
							
							(svn r27518) -Update: Numbers  
						
						
						
						
					 
					
						2016-03-01 20:00:22 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						6477356dd2 
					 
					
						
						
							
							(svn r27192) -Change: heading for 1.6 now  
						
						
						
						
					 
					
						2015-03-17 20:33:44 +00:00 
						 
				 
			
				
					
						
							
							
								fonsinchen 
							
						 
					 
					
						
						
							
						
						2128f1e929 
					 
					
						
						
							
							(svn r26893) -Feature: ScriptStationList_Cargo for sorting cargo by from and via  
						
						
						
						
					 
					
						2014-09-21 16:20:48 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						33ab505567 
					 
					
						
						
							
							(svn r26774) -Cleanup [Squirrel]: remove _SC macro  
						
						
						
						
					 
					
						2014-09-06 17:46:56 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						7c4e9dd71d 
					 
					
						
						
							
							(svn r26771) -Cleanup: remove OTTD2SQ and SQ2OTTD  
						
						
						
						
					 
					
						2014-09-06 17:30:33 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						5e90054f20 
					 
					
						
						
							
							(svn r26511) -Codechange: use strecpy in game_text  
						
						
						
						
					 
					
						2014-04-25 17:43:09 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						9ed12b0f07 
					 
					
						
						
							
							(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)  
						
						
						
						
					 
					
						2014-04-25 15:40:32 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						e61fe21237 
					 
					
						
						
							
							(svn r26506) -Codechange: replace most of vsnprintf with vseprintf  
						
						
						
						
					 
					
						2014-04-24 19:51:45 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						fad2d3c709 
					 
					
						
						
							
							(svn r26505) -Fix (r23634, r26493): Incorrect usage of strecpy/strecat  
						
						
						
						
					 
					
						2014-04-24 19:09:17 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						d71cc434e4 
					 
					
						
						
							
							(svn r26504) -Fix (r26499): Obiwan and his gang.  
						
						
						
						
					 
					
						2014-04-24 18:58:47 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						8960939b22 
					 
					
						
						
							
							(svn r26499) -Codechange: replace strndup with stredup  
						
						
						
						
					 
					
						2014-04-24 18:37:39 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						a5274117bd 
					 
					
						
						
							
							(svn r26487) -Codechange: use lastof instead of lengthof/sizeof for script names  
						
						
						
						
					 
					
						2014-04-23 21:16:58 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						5b82822c12 
					 
					
						
						
							
							(svn r26486) -Codechange: replace a number of snprintfs with seprintf  
						
						
						
						
					 
					
						2014-04-23 21:12:09 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						ef4c2ce031 
					 
					
						
						
							
							(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat.  
						
						
						
						
					 
					
						2014-04-23 20:44:42 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						0463dbdc9e 
					 
					
						
						
							
							(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values  
						
						
						
						
					 
					
						2014-04-23 20:13:33 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						db96a109ff 
					 
					
						
						
							
							(svn r26406) -Change: heading for 1.5 now  
						
						
						
						
					 
					
						2014-03-17 20:02:30 +00:00 
						 
				 
			
				
					
						
							
							
								zuu 
							
						 
					 
					
						
						
							
						
						57a88c9de2 
					 
					
						
						
							
							(svn r26305) -Add: [nogo] ScriptStoryPageElementList() - a list of all story page elements for a given page  
						
						
						
						
					 
					
						2014-02-06 19:41:56 +00:00 
						 
				 
			
				
					
						
							
							
								zuu 
							
						 
					 
					
						
						
							
						
						5165be2698 
					 
					
						
						
							
							(svn r26303) -Add: [nogo] ScriptStoryPageList() - a list of all story pages  
						
						
						
						
					 
					
						2014-02-06 19:25:39 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						c54a70cce8 
					 
					
						
						
							
							(svn r26090) -Fix: leaking of file descriptor when reading strings for game texts  
						
						
						
						
					 
					
						2013-11-24 15:25:41 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						bf0f5345ea 
					 
					
						
						
							
							(svn r25818) -Fix [FS#5750]: [GS] Language file scanner considered filenames starting with '.' as valid translations, resulting in languages with empty name, which causes trouble.  
						
						
						
						
					 
					
						2013-10-06 12:13:20 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						81ce9ad189 
					 
					
						
						
							
							(svn r25592) -Fix [FS#5644]: Changing the script difficulty level in-game would also change the settings using the default even though they were not allowed to change in-game  
						
						
						
						
					 
					
						2013-07-12 18:54:27 +00:00 
						 
				 
			
				
					
						
							
							
								zuu 
							
						 
					 
					
						
						
							
						
						9aa1bf0264 
					 
					
						
						
							
							(svn r25342) -Add: StoryPage data structures and GS API  
						
						
						
						
					 
					
						2013-06-09 12:19:09 +00:00 
						 
				 
			
				
					
						
							
							
								zuu 
							
						 
					 
					
						
						
							
						
						a23b84fdfc 
					 
					
						
						
							
							(svn r25332) -Fix (25331): Committed too much  
						
						
						
						
					 
					
						2013-06-08 13:02:28 +00:00 
						 
				 
			
				
					
						
							
							
								zuu 
							
						 
					 
					
						
						
							
						
						059eee93fc 
					 
					
						
						
							
							(svn r25331) -Fix (r25263): Update ScriptWindow with link graph widgets  
						
						
						
						
					 
					
						2013-06-08 12:37:36 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						5046922f61 
					 
					
						
						
							
							(svn r25117) -Fix [FS#5511]: Silence warning.  
						
						
						
						
					 
					
						2013-03-24 11:04:58 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						9eab26a1a1 
					 
					
						
						
							
							(svn r25114) -Fix [FS#5509]: GS lang files did not work, when inside a tar.  
						
						
						
						
					 
					
						2013-03-22 21:21:45 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						7ff6598cd2 
					 
					
						
						
							
							(svn r25001) -Change: heading for 1.4 now  
						
						
						
						
					 
					
						2013-02-14 18:58:04 +00:00 
						 
				 
			
				
					
						
							
							
								planetmaker 
							
						 
					 
					
						
						
							
						
						c24374f99c 
					 
					
						
						
							
							(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)  
						
						
						
						
					 
					
						2013-01-08 22:46:42 +00:00 
						 
				 
			
				
					
						
							
							
								zuu 
							
						 
					 
					
						
						
							
						
						f3f4c562ff 
					 
					
						
						
							
							(svn r24537) -Feature: Scripts can be suspended even if the game is still progressing, thus break-on-log now works also for Game Scripts.  
						
						
						
						
					 
					
						2012-09-21 19:58:18 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						16760cff8b 
					 
					
						
						
							
							(svn r24516) -Add: [GS] Support ##plural pragma in GS lang files.  
						
						
						
						
					 
					
						2012-09-09 15:55:20 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						2ec6136113 
					 
					
						
						
							
							(svn r24515) -Fix: GStexts were compied incompletely when containing certain string codes.  
						
						
						
						
					 
					
						2012-09-09 15:52:49 +00:00 
						 
				 
			
				
					
						
							
							
								yexo 
							
						 
					 
					
						
						
							
						
						fe31aa28c4 
					 
					
						
						
							
							(svn r24487) -Codechange [FS#5236]: make several DoesContentExist return the path instead of a boolean (LordAro)  
						
						
						
						
					 
					
						2012-08-20 21:01:40 +00:00 
						 
				 
			
				
					
						
							
							
								yexo 
							
						 
					 
					
						
						
							
						
						54aa43c81b 
					 
					
						
						
							
							(svn r24468) -Add [FS#5219]: API compatibility scripts for Goal Scripts (Hirundo)  
						
						
						
						
					 
					
						2012-08-13 19:22:26 +00:00 
						 
				 
			
				
					
						
							
							
								alberth 
							
						 
					 
					
						
						
							
						
						eb56e5c0b1 
					 
					
						
						
							
							(svn r24406) -Feature: Allow game scripts to monitor cargo pickups and deliveries done by companies.  
						
						
						
						
					 
					
						2012-07-15 17:11:14 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						95d3d6fdef 
					 
					
						
						
							
							(svn r24291) -Add: [Script] ScriptEventRoadReconstruction.  
						
						
						
						
					 
					
						2012-05-26 14:16:45 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						8dc553a039 
					 
					
						
						
							
							(svn r24290) -Add: [Script] ScriptEventExclusiveTransportRights.  
						
						
						
						
					 
					
						2012-05-26 14:16:38 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						66a37e28a6 
					 
					
						
						
							
							(svn r24289) -Add: [Script] Base class for script events involving a company and a town.  
						
						
						
						
					 
					
						2012-05-26 14:16:32 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						d7d89bc806 
					 
					
						
						
							
							(svn r24108) -Fix [FS#5142]: When starting GS or AI, always use the settings of the game, not the new-game settings.  
						
						
						
						
					 
					
						2012-04-09 12:35:01 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						a5cb454e94 
					 
					
						
						
							
							(svn r23969) -Codechange: trunk heads to 1.3 now  
						
						
						
						
					 
					
						2012-02-19 19:14:17 +00:00