summaryrefslogtreecommitdiff
path: root/src/newgrf_config.h
AgeCommit message (Collapse)Author
2021-07-18Remove: the concept of UnknownGRFsrubidium42
These were filled with "<Unknown>" (before 8a2da49) and later their name would get filled via UDP requests to the server. These UDP packets do not exist anymore, so they will always remain "<Unknown>". Remove that logic and just use the generic translated error GRF UNKNOWN string instead.
2021-05-29Codechange: use separate pre and post callbacks for int settingsrubidium42
2021-05-27Change: mark copy-assignment as deleted for classes with a copy-constructor ↵rubidium42
that is not trivial This to prevent the default copy-assignment getting used when during the assignment also some other memory needs to be allocated as that would otherwise be freed.
2020-05-21Codechange: Use std::string for storing GRF error messages.Michael Lutz
2020-05-21Codechange: Replace custom linked list for GRF texts with STL vectors and ↵Michael Lutz
strings.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Cleanup: Remove unused size template parameters from SmallMap and ↵Henry Wilson
Auto[Free|Delete]SmallVector
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
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.
2017-01-14(svn r27732) -Change: Turn the message about 'missing baseset sprites' from ↵frosch
a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
2017-01-07(svn r27725) -Codechange: Remove IsOpenTTDBaseGRF and test for GCF_CONFIG ↵frosch
instead, which does the same in all use-cases.
2014-05-24(svn r26612) -Add: Method to copy newgrf parameters.alberth
2014-02-07(svn r26317) -Fix [FS#5897]: Check whether NewGRF change vehicle capacity ↵frosch
when they are not supposed to, and truncate cargo appropiately if they are allowed to.
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-06-01(svn r24318) -Feature: Add dropdowns to NewGRF configurations, if all values ↵frosch
have labels.
2012-02-12(svn r23932) -Codechange: split the NewGRF text window into its own source filesrubidium
2012-02-04(svn r23887) -Feature: [NewGRF] Support for container version 2.michi_cc
2012-01-15(svn r23807) -Codechange: GRFError::num_params is not needed, remove it.frosch
2011-12-20(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the ↵truebrain
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-12-19(svn r23595) -Codechange: add comma after last enum to get a more uniform ↵rubidium
coding style
2011-12-15(svn r23526) -Codechange: unify cargos vs cargoesrubidium
2011-12-11(svn r23494) -Feature: [NewGRF] action14 node INFO->URL_ to add an urlyexo
2011-12-04(svn r23422) -Fix [FS#4863] (r22797): the default palette setting wasn't ↵rubidium
applied correctly anymore as the configuration file is loaded after the first NewGRF scan
2011-11-18(svn r23249) -Feature: Also allow viewing of the other two textfiles ↵frosch
supplied by BaNaNaS tars, i.e. changelog and license.
2011-11-18(svn r23248) -Codechange: Rename everything related to the NewGRF 'readme' ↵frosch
to 'textfile', so it is more generic.
2011-11-10(svn r23178) -Feature [FS#4780]: in-game readme.txt readmer (LordAro)rubidium
2011-11-08(svn r23140) -Add: ErrorUnknownCallbackResult()frosch
2011-10-04(svn r23001) -Feature: [NewGRF] Automatically switch to a 32 bpp blitter on ↵michi_cc
NewGRF indication.
2011-08-24(svn r22826) -Codechange: pass sub directory to NewGRF loading functionsrubidium
2011-08-21(svn r22797) -Add: progress bar for scanning NewGRFsrubidium
2011-08-21(svn r22793) -Codechange: remove callback default to make clear they are not ↵rubidium
forgotten
2011-08-21(svn r22790) -Codechange: add callback for when NewGRF scanning is completerubidium
2011-05-02(svn r22410) -Document: some more bits ;)rubidium
2011-03-03(svn r22162) -Fix [FS#4533]: No update of NewGRF window when unknown GRF ↵yexo
name becomes available
2011-01-15(svn r21814) -Fix/Add: Check GRF version from action 8, and disallow usage ↵frosch
of GRFs with versions above 7.
2010-10-17(svn r20959) -Codechange: Realign comments.frosch
2010-10-17(svn r20958) -Add: the concept of min-loadable-version to NewGRFs when ↵frosch
choosing compatbile NewGRFs. (planetmaker)
2010-10-17(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define ↵frosch
search restrictions.
2010-08-23(svn r20601) -Feature: [NewGRF] Add 'DEFA' field to set parameter defaults ↵yexo
with action 14
2010-08-19(svn r20566) -Feature: happy smiles on the faces of Ammler and planetmakerrubidium
2010-08-15(svn r20505) -Feature [FS#3978]: Allow changing visual effect when changing ↵frosch
railtype.
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-07-31(svn r20259) -Add: allow NewGRFs to specify their version and use that to ↵rubidium
hide old NewGRFs / to choose the newest when loading compatible NewGRFs
2010-07-31(svn r20258) -Feature: more user-friendly gui to change NewGRF parametersyexo
2010-07-31(svn r20255) -Add: allow NewGRFs to specify static info about their ↵yexo
user-changeable parameters
2010-07-31(svn r20254) -Add: allow NewGRFs to specify their paletterubidium
2010-07-31(svn r20253) -Codechange: change GRFConfig::windows_paletted into a ↵rubidium
bitmask/bitset
2010-07-31(svn r20252) -Codechange: deduplicate logic for setting a suitable (initial) ↵rubidium
palette for NewGRFs
2010-07-31(svn r20251) -Add: [NewGRF] allow grfs to specify the number of valid parametersyexo