summaryrefslogtreecommitdiff
path: root/src/settings.cpp
AgeCommit message (Collapse)Author
2019-05-14Add: [Win32] GDI engine for font glyph rendering as a replacement for ↵Michael Lutz
including FreeType. Building with FreeType is still possible and will take precedence over the GDI renderer, but the project files don't include FreeType anymore by default. Combining GDI rendering with ICU text layout is untested.
2019-05-14Codechange: Refactor the Freetype font cache into a generic part that does ↵Michael Lutz
not depend on Freetype and into one that does. This makes it easier to add other TrueType font rendering engines.
2019-04-25Feature: Add coverage area display for existing stations.peter1138
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-09Codechange: If something is a vector of strings, use a vector of strings ↵Michael Lutz
instead of an AutoFreeSmallVector.
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
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.
2019-03-16Remove: OPFCharles Pigott
2019-03-16Change: Use default value for invalid multi-string settings instead of ↵PeterN
clamping to min or max value. (#7361)
2019-03-09Feature: Non-rectangular sparse station catchment area.Peter Nelson
2019-02-08Codechange: Make the style of MakeVoid calls uniform (#7192)Gabda
2019-02-02Codechange: Convert saveload numbers to enum values.Peter Nelson
(This was mostly achieved with a few in-place regexes)
2019-02-01Fix #6438: Properly invalidate AI Settings window when max no competitor ↵Peter Nelson
setting is changed.
2019-01-31Feature: Group liveries, and livery window usability enhancements. (#7108)PeterN
* Change: Replace checkbox in livery selection window with Default option in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired. * Feature: Add vehicle group liveries.
2019-01-19Change: Invalidate ship path caches if pathfinder choice or forbid-90-degree ↵Peter Nelson
turns are changed.
2018-12-27Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined ↵glx
macro _WIN32
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-03-20(svn r27816) -Fix [FS#6421]: Do not search directories when opening ini ↵peter1138
files as we already have their full path.
2015-05-16(svn r27285) -Codechange: Use LG_ORIGINAL instead of a magic 0 to indicate ↵alberth
the original landscape generator.
2015-02-22(svn r27163) -Fix [FS#6204]: Toolbars were not invalidated when changing ↵frosch
max-vehicles settings. (adf88)
2015-02-14(svn r27151) -Add: Allow changing max heightlevel in scenario editor.frosch
2014-10-12(svn r27004) -Codechange: Make GUI size apply to (sprite-font) text as well.peter1138
2014-10-11(svn r26990) -Feature: Add option to choose normal, double or quad-size ↵peter1138
interface.
2014-05-24(svn r26611) -Feature: Save and load grfid and md5sum of newgrfs in config ↵alberth
file (frosch)
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-24(svn r26499) -Codechange: replace strndup with streduprubidium
2014-04-24(svn r26494) -Codechange: replace some further usages of s(n)printf with ↵rubidium
seprintf
2014-04-24(svn r26493) -Codechange: use strecat to concatenate script settings instead ↵rubidium
of manually accounting for the amount of characters that has been written
2014-04-23(svn r26486) -Codechange: replace a number of snprintfs with seprintfrubidium
2014-04-23(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy ↵frosch
and strecat.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
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-06-09(svn r25358) -Codechange: save and load link graph jobs and the schedulefonsinchen
2013-05-26(svn r25291) -Add: WindowDesc ability to load and store information in a ↵frosch
config file.
2013-02-14(svn r24996) -Change: Apply default service interval changes to vehicles ↵rubidium
without custom interval (peter1138)
2013-02-04(svn r24968) -Fix [FS#5379]: company window was not updated when shared were ↵rubidium
enabled/disabled
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2013-01-08(svn r24899) -Fix [FS#5434]: Also the station build window needs redrawing ↵planetmaker
when the station spread changes (based on patch by juanjo)
2013-01-08(svn r24894) -Fix [FS#5434]: Invalidate station selection window when ↵planetmaker
station spread changes (based on patch by juanjo)
2012-12-26(svn r24860) -Codechange: Add SettingDesc::GetType().frosch
2012-12-23(svn r24843) -Codechange: Move news display options into the general ↵frosch
settings framework. (based on patch by eagle_rainbow)
2012-12-20(svn r24833) -Codechange: Replace magic numbers for invalidating ↵michi_cc
vehicle-related windows with an enum.
2012-12-05(svn r24790) -Remove: Classic difficulty profiles.frosch
2012-12-05(svn r24787) -Fix: Unify checks for editability of settings.frosch
2012-12-05(svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles ↵frosch
and highscore tables.
2012-05-14(svn r24250) -Fix [FS#5154]: Do not immediately display error messages from ↵frosch
parsing the cfg file, but schedule them for displaying after the GUI is prepared for it.
2012-05-14(svn r24247) -Fix: If loading of int-list settings fails, use the default.frosch
2012-05-01(svn r24193) -Fix (r24191): Also update comments accordingly.frosch