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
7b553d255e
(svn r27732) -Change: Turn the message about 'missing baseset sprites' from a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
2017-01-14 18:30:26 +00:00
frosch
a3b356e057
(svn r27725) -Codechange: Remove IsOpenTTDBaseGRF and test for GCF_CONFIG instead, which does the same in all use-cases.
2017-01-07 21:36:25 +00:00
frosch
b363a639aa
(svn r27723) -Codechange: Simplify tests by using GCF_SYSTEM.
2017-01-07 21:22:26 +00:00
frosch
b6b02108f7
(svn r27721) -Fix: Testing GRFs for static-safety (when reloading the config) invalidated file slot 62, which may be in use by an active GRF.
2017-01-07 21:18:17 +00:00
frosch
31f046bd9b
(svn r27670) -Add: [FS#6471] Assign descriptive names to (GNU pthread) threads. (JGR)
2016-10-30 17:29:33 +00:00
frosch
861b9bc85e
(svn r27063) -Fix [FS#6172]: Some lists did not use natural string sorting.
2014-11-18 20:12:42 +00:00
rubidium
771dcf3b7b
(svn r27003) -Cleanup: fix the use of spaces and asterices "around" some comments
2014-10-12 18:41:53 +00:00
alberth
3c9d3f5ecd
(svn r26612) -Add: Method to copy newgrf parameters.
2014-05-24 19:13:34 +00:00
rubidium
b476086c39
(svn r26538) -Codechange: remove double accounting of the drivers
2014-04-28 21:06:51 +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
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
rubidium
1b9e32664f
(svn r26070) -Fix: prevent extremely huge size for data (1+GiB)
2013-11-23 18:11:01 +00:00
rubidium
78a316d349
(svn r26061) -Fix: negative result of ftell wasn't handled correctly in some cases
2013-11-23 13:17:45 +00:00
rubidium
0e9c992104
(svn r26058) -Fix: handle the return value of a number of functions better
2013-11-23 13:15:07 +00:00
rubidium
b3e93d6520
(svn r26057) -Fix: a number of possibly uninitialised variables
2013-11-23 13:12:19 +00:00
frosch
c3ca57c42b
(svn r24318) -Feature: Add dropdowns to NewGRF configurations, if all values have labels.
2012-06-01 15:20:18 +00:00
rubidium
58269b7ad2
(svn r23935) -Codechange: generalise GetTextfile
2012-02-12 10:51:43 +00:00
michi_cc
6db39410a1
(svn r23887) -Feature: [NewGRF] Support for container version 2.
2012-02-04 13:29:04 +00:00
frosch
92700c1262
(svn r23807) -Codechange: GRFError::num_params is not needed, remove it.
2012-01-15 17:33:35 +00:00
truebrain
561b25d031
(svn r23601) -Fix: fix the conflict in window number
2011-12-19 20:50:21 +00:00
yexo
7a7d9a7b6b
(svn r23494) -Feature: [NewGRF] action14 node INFO->URL_ to add an url
2011-12-11 12:55:04 +00:00
frosch
0d901d599f
(svn r23249) -Feature: Also allow viewing of the other two textfiles supplied by BaNaNaS tars, i.e. changelog and license.
2011-11-18 14:40:57 +00:00
frosch
b725913f3b
(svn r23248) -Codechange: Rename everything related to the NewGRF 'readme' to 'textfile', so it is more generic.
2011-11-18 13:05:55 +00:00
rubidium
4ae8bbea07
(svn r23222) -Codechange: reduce tar scanning calls to the bare minimum
2011-11-14 21:40:39 +00:00
rubidium
6d991b3b10
(svn r23217) -Codechange: introduce the concept of scanning only in a limited set of sub directories
2011-11-14 21:30:37 +00:00
yexo
d6bf0d10d0
(svn r23182) -Feature: allow translatable readme files
2011-11-10 18:07:56 +00:00
rubidium
514d887690
(svn r23178) -Feature [FS#4780]: in-game readme.txt readmer (LordAro)
2011-11-10 06:15:03 +00:00
rubidium
414c397000
(svn r22904) -Codechange: add tar filename to file scanning
2011-09-08 09:48:52 +00:00
rubidium
8e5f433b22
(svn r22826) -Codechange: pass sub directory to NewGRF loading functions
2011-08-24 13:48:29 +00:00
rubidium
0061b5f184
(svn r22822) -Codechange: make a distinction between base sets and newgrfs for their directory
2011-08-24 13:33:49 +00:00
rubidium
70179db81e
(svn r22820) -Codechange: perform a full (re)draw cycle in the first draw during progress instead of waiting 200ms
2011-08-24 12:18:53 +00:00
rubidium
38ad276acc
(svn r22819) -Fix: include the header where it should be included
2011-08-24 12:12:36 +00:00
rubidium
9fe4b959ac
(svn r22818) -Fix [FS#4742] (r22796, rlongago): don't spawn threads for world generation and NewGRF scanning when using the dedicated or null video driver regardless of the used blitter
2011-08-24 12:11:10 +00:00
rubidium
c10d415723
(svn r22800) -Fix (r22796): don't run the scanning threaded when there is no reason to do so (no UI to update)
2011-08-21 13:19:06 +00:00
rubidium
dc5f44883b
(svn r22797) -Add: progress bar for scanning NewGRFs
2011-08-21 12:53:13 +00:00
rubidium
2987bcc79b
(svn r22796) -Codechange: run the NewGRF scanning in a separate thread
2011-08-21 12:53:00 +00:00
rubidium
d7593d8815
(svn r22790) -Codechange: add callback for when NewGRF scanning is complete
2011-08-21 12:49:51 +00:00
rubidium
327c5dd10c
(svn r22771) -Codechange: unify some NewGRFScan calling code
2011-08-20 17:46:03 +00:00
frosch
bfd09004fe
(svn r22417) -Add: an advanced setting to specify the default palette to use for NewGRFs without action 14 palette information; this makes the default choice independent from the used base graphics and '-i' option.
2011-05-03 20:30:26 +00:00
rubidium
4d5dbf5170
(svn r22410) -Document: some more bits ;)
2011-05-02 16:14:23 +00:00
yexo
93533b603a
(svn r22162) -Fix [FS#4533]: No update of NewGRF window when unknown GRF name becomes available
2011-03-03 18:47:46 +00:00
frosch
6e4dd56158
(svn r21814) -Fix/Add: Check GRF version from action 8, and disallow usage of GRFs with versions above 7.
2011-01-15 21:13:47 +00:00
rubidium
ab31493dc2
(svn r21125) -Fix (r20248): static NewGRFs shouldn't be added non-statically to a game
2010-11-09 21:57:02 +00:00
frosch
38c350fad5
(svn r20960) -Add: Allow setting 'minimal compatible version' via Action14. (planetmaker)
...
Note: Setting 'VRSN' also sets 'MINV' resulting in the Grf being only compatible to the same version. Set 'MINV' after 'VRSN' if your Grf is compatible to older versions.
2010-10-17 12:14:49 +00:00
frosch
e805919fe9
(svn r20958) -Add: the concept of min-loadable-version to NewGRFs when choosing compatbile NewGRFs. (planetmaker)
2010-10-17 12:12:52 +00:00
frosch
3972c790c2
(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions.
2010-10-17 12:12:13 +00:00
yexo
d6d3e83847
(svn r20766) -Fix [FS#4112]: action14 data was not used for NewGRFs loaded from a savegame
2010-09-08 15:35:54 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
yexo
f6f218cf6b
(svn r20604) -Feature: add a reset button to the newgrf parameters window
2010-08-23 22:25:50 +00:00
yexo
a36159614a
(svn r20601) -Feature: [NewGRF] Add 'DEFA' field to set parameter defaults with action 14
2010-08-23 21:47:07 +00:00
yexo
04a9a58ecd
(svn r20346) -Change: scan for tar files before scanning for AIs/NewGRFs so new AIs/NewGRFs inside a tar file are found
2010-08-03 13:32:02 +00:00
yexo
6371e6c4db
(svn r20307) -Fix (r20305): the palette for baseset extra grfs was never set so it defaulted to dos
2010-08-02 16:04:24 +00:00
rubidium
d1787d884c
(svn r20287) -Fix: GCC 4.1 warning
2010-08-01 19:52:51 +00:00
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
2010-08-01 19:44:49 +00:00
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
2010-08-01 19:22:34 +00:00
alberth
a825b4fa5f
(svn r20266) -Doc: Mostly typo fixes, a few doxygen-related improvements.
2010-07-31 21:02:56 +00:00
rubidium
ac280af8bc
(svn r20259) -Add: allow NewGRFs to specify their version and use that to hide old NewGRFs / to choose the newest when loading compatible NewGRFs
2010-07-31 14:40:50 +00:00
yexo
5a2862814a
(svn r20258) -Feature: more user-friendly gui to change NewGRF parameters
2010-07-31 12:15:12 +00:00
yexo
d6eab96a22
(svn r20255) -Add: allow NewGRFs to specify static info about their user-changeable parameters
2010-07-31 09:51:04 +00:00
rubidium
4a4f02dc81
(svn r20254) -Add: allow NewGRFs to specify their palette
2010-07-31 09:44:38 +00:00
rubidium
e469a94a2d
(svn r20253) -Codechange: change GRFConfig::windows_paletted into a bitmask/bitset
2010-07-31 09:40:43 +00:00
rubidium
f7794e313f
(svn r20252) -Codechange: deduplicate logic for setting a suitable (initial) palette for NewGRFs
2010-07-31 09:36:09 +00:00
yexo
75c4a2d2fb
(svn r20251) -Add: [NewGRF] allow grfs to specify the number of valid parameters
2010-07-31 09:35:49 +00:00
yexo
d3c1be9abd
(svn r20249) -Codechange: change the newgrf name/description from a char* to a GRFText* to make translations possible
2010-07-31 09:33:39 +00:00
yexo
1ca16aa979
(svn r20248) -Codechange: use a copy-constructor instead of a separate function co clone GRFConfig/GRFError
2010-07-31 09:32:44 +00:00
frosch
56fbbdeafd
(svn r19972) -Change: Use the md5sum from the previous save of the game for BaNaNaS instead of the initial (when the grf was added) md5sum from the gamelog. Neither method is 'better', but this way it is independent from the gamelog.
2010-06-13 14:11:32 +00:00
frosch
641fc68aa8
(svn r19971) -Codechange: Make IsGoodGRFConfigList() operate on any given GRFConfig and move the GameLog operations directly to AfterLoad().
2010-06-13 14:07:49 +00:00
alberth
3271362413
(svn r19835) -Codechange: Extract grfident equality check to its own method.
2010-05-16 18:50:37 +00:00
alberth
4415841ce1
(svn r19553) -Doc: Added/converted explanation to some GRFConfig functions.
2010-04-03 20:02:08 +00:00
yexo
4d5125f0c4
(svn r19315) -Fix (r19295): Show the filename in the newgrf windows if the newgrf name is not empty
2010-03-04 20:07:39 +00:00
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
2010-02-28 20:28:08 +00:00
yexo
7ff55502f0
(svn r19256) -Codechange: use a constructor/destructor for GRFConfig to make sure all members are properly initialized
2010-02-25 20:06:11 +00:00
yexo
a9c8dbc0a0
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
2010-02-25 20:05:31 +00:00
yexo
4377b5fd44
(svn r19254) -Codechange: simplify newgrf text code by introducing a few helper functions
2010-02-25 20:00:11 +00:00
yexo
2c1b7410f3
(svn r19251) -Codechange: add a contructor to GRFError and use it to allocating errors more uniform.
...
-Fix: some grf error messages didn't free the previous error messages, creating a memory leak
2010-02-25 15:54:40 +00:00
yexo
bd102b78ee
(svn r18813) -Codechange: deduplicate copying a newgrf config
2010-01-15 18:28:30 +00:00
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
2009-10-04 17:16:41 +00:00
rubidium
5557d2a224
(svn r17563) -Fix: memory leak when viewing the NewGRF settings of a server
2009-09-17 21:45:47 +00:00
rubidium
55c0109ee0
(svn r17562) -Fix [FS#2972]: the NewGRF settings of (remote) network games did not get properly updated when the NewGRFs were rescanned causing reading of freed data
2009-09-17 21:14:16 +00:00
rubidium
53cc397607
(svn r17524) -Codechange: use QSortT instead of qsort for sorting NewGRFs
2009-09-13 17:36:50 +00:00
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
rubidium
60a3bc9034
(svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory.
2009-08-21 20:15:17 +00:00
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
2009-01-31 20:16:06 +00:00
peter1138
f8d65b4865
(svn r15114) -Codechange: Add support for 8 byte action7/9 data, used as a mask for GRFID checks.
2009-01-16 19:53:52 +00:00
smatz
7368c740a6
(svn r14828) -Codechange: move most of save/load-specific code to separate files
2009-01-04 15:32:25 +00:00
skidd13
706dd0f86c
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
2008-11-02 11:20:15 +00:00
rubidium
0d254e8914
(svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly.
2008-10-28 14:42:31 +00:00
rubidium
72b72bb368
(svn r14245) -Fix: NewGRF configs loaded from the config file would always default to the DOS palette instead of the "default" palette.
2008-09-04 19:43:20 +00:00
rubidium
a4cd12274c
(svn r14233) -Feature/Fix [FS#2172]: save the palette of the loaded NewGRFs in the savegame, so joining with a server using Windows palette will make a client with the DOS palette do palette conversion and (thus) not cause a desync due to the different palettes disabling different NewGRFs.
2008-09-03 07:51:07 +00:00
rubidium
ea1f180a55
(svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too.
2008-08-31 10:50:05 +00:00
rubidium
1afa473d0f
(svn r14196) -Codechange: make the searching for files with a specific extension extendable.
2008-08-31 08:38:30 +00:00
peter1138
b49814c537
(svn r13865) -Codechange: Use case-insensitive sort for NewGRF list.
2008-07-29 07:51:55 +00:00
smatz
fee2adb299
(svn r13618) -Codechange: move tar-specific declarations to separate file
...
Removes indirect dependency on <string> and <map> for over 40 files
2008-06-24 09:05:24 +00:00
smatz
c7a9637834
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
2008-06-03 18:35:58 +00:00
rubidium
2f3b88ef9a
(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
2008-05-30 18:20:26 +00:00
glx
e48a351f8e
(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warnings
2008-05-08 13:20:54 +00:00
smatz
c3822e3a90
(svn r12993) -Fix (r11175): list used for sorting GRFs wasn't freed
2008-05-07 17:36:28 +00:00
glx
c2c9121307
(svn r12991) -Codechange: removed some unneeded includes
2008-05-07 14:12:20 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00