summaryrefslogtreecommitdiff
path: root/src/settings.cpp
AgeCommit message (Collapse)Author
2021-02-17Codechange: Allow early-load settings that are not misc settings.Michael Lutz
2021-02-14Add: [OSX] Native font rendering without using FreeType.Michael Lutz
2020-12-27Codechange: Stringify config file paths.Michael Lutz
2020-12-13Add: save openttd.cfg immediately on changing a setting (#8358)Patric Stout
Formally it was only done on exit. This means that if it crashes changes in settings were not stored. This is often rather frustrating. Additionally, targets (like emscripten) where people are unlike to use "Exit Game", will never see their configuration stored. The drawback is that on every setting change there is some minor I/O of writing the ini file to disk again.
2020-12-06Fix: Compile warnings when asserts are disabledCharles Pigott
2020-05-21Codechange: Store base set related texts in std::strings.Michael Lutz
2020-05-21Codechange: Use std::string in INI file parsing.Michael Lutz
2020-02-06Feature: SLF_HEX to print hexadecimal numbers in the config fileJohannes E. Krause
2020-02-06Fix: Loading SDT_INTLIST similar to loading SDT_NUMXJohannes E. Krause
2020-02-06Fix: Saving SDT_INTLIST handle unsigned values properlyJohannes E. Krause
2019-12-21Codechange: Replace vehicle related FOR_ALL with range-based for loopsglx
2019-12-21Codechange: Replace station related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
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.