Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-05-27 | Codechange: remove SettingDescType in lieu of the actual classes | rubidium42 | |
2021-05-27 | Codechange: let OneOfMany and ManyOfMany be their own classes as well | rubidium42 | |
2021-05-27 | Codechange: make BoolSettingDesc its own sub class | rubidium42 | |
2021-05-27 | Cleanup: remove unneeded temporary variables and casts | rubidium42 | |
2021-05-27 | Codechange: move bits of SettingDesc down to the appropriate sub classes | rubidium42 | |
And by doing so remove the hack where ints were put into pointers so "def" could either be an int or a string | |||
2021-05-27 | Codechange: make parsing of IniItems overridable functions of SettingDesc | rubidium42 | |
2021-05-27 | Codechange: make Write_ValidateSetting a function of StringSettingDesc | rubidium42 | |
2021-05-27 | Codechange: make Write_ValidateSetting a function of IntSettingDesc | rubidium42 | |
2021-05-27 | Cleanup: use (config) formatting for console settings functions | rubidium42 | |
2021-05-27 | Codechange: make formatting of values into strings a method of SettingDesc | rubidium42 | |
2021-05-27 | Codechange: make SettingDesc an instance in the setting table to allow for ↵ | rubidium42 | |
sub classes | |||
2021-05-27 | Codechange: do not use SettingDescBase directly when not needed | rubidium42 | |
2021-05-27 | Codechange: use initializer_lists for the settings tables | rubidium42 | |
Not using vectors as those require copying from the initializer list and that makes unique_ptrs to the actual SettingDesc objects later impossible. | |||
2021-05-27 | Codechange: let SettingDesc extend SettingDescBase | rubidium42 | |
2021-05-27 | Codechange: just pass the SettingDesc to SetSettingValue and remove ↵ | rubidium42 | |
distinction between (non)company | |||
2021-05-13 | Codechange: clean up C-string support from settings | rubidium42 | |
2021-05-13 | Codechange: move script settings to std::string | rubidium42 | |
2021-05-13 | Codechange: move passwords in settings to std::string | rubidium42 | |
2021-05-13 | Change: further support for std::string in settings | rubidium42 | |
2021-05-06 | Codechange: add SetDParamStr that accepts std::string& | rubidium42 | |
2021-05-05 | Change: [Network] Update server's NetworkServerGameInfo only when needed | rubidium42 | |
Split the updating in a "static" version that only needs to be called when a new map is loaded or some settings are changed, and a "dynamic" version that updates everything that changes regularly such as the current game date or the number of spectators. | |||
2021-04-30 | Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed. | Peter Nelson | |
2021-04-27 | Fix: truncating strings in settings could leave invalid Utf8 characters | rubidium42 | |
2021-04-27 | Codechange: writing and string validation to its own functions | rubidium42 | |
2021-04-27 | Feature: allow non-ASCII currency separators | rubidium42 | |
2021-04-11 | Fix: Invalidate cached vehicle colourmaps when changing liveries setting. ↵ | PeterN | |
(#9006) | |||
2021-03-26 | Feature: setting to indicate snow coverage for arctic climate (replaces snow ↵ | Patric Stout | |
line height) Setting the snow coverage (in % of the map) makes a lot more sense to the human, while still allowing the niche player to set (by finding the correct %) a snow line height they like. This makes for easier defaults, as it decoupled terrain height from amount of snow. Maps can never be 100% snow, as we do not have sprites for coastal tiles. Internally, this calculates the best snow line height to approach this coverage as close as possible. | |||
2021-03-13 | Feature: allow setting maximum zoom level at which sprites are drawn (#8604) | Matt Kimber | |
2021-02-17 | Codechange: Allow early-load settings that are not misc settings. | Michael Lutz | |
2021-02-14 | Add: [OSX] Native font rendering without using FreeType. | Michael Lutz | |
2020-12-27 | Codechange: Stringify config file paths. | Michael Lutz | |
2020-12-13 | Add: 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-06 | Fix: Compile warnings when asserts are disabled | Charles Pigott | |
2020-05-21 | Codechange: Store base set related texts in std::strings. | Michael Lutz | |
2020-05-21 | Codechange: Use std::string in INI file parsing. | Michael Lutz | |
2020-02-06 | Feature: SLF_HEX to print hexadecimal numbers in the config file | Johannes E. Krause | |
2020-02-06 | Fix: Loading SDT_INTLIST similar to loading SDT_NUMX | Johannes E. Krause | |
2020-02-06 | Fix: Saving SDT_INTLIST handle unsigned values properly | Johannes E. Krause | |
2019-12-21 | Codechange: Replace vehicle related FOR_ALL with range-based for loops | glx | |
2019-12-21 | Codechange: Replace station related FOR_ALL with range-based for loops | glx | |
2019-11-10 | Cleanup: Removed SVN headers | S. D. Cloudt | |
2019-09-29 | Fix: Some typos found using codespell | JMcKiern | |
2019-05-14 | Add: [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-14 | Codechange: 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-25 | Feature: Add coverage area display for existing stations. | peter1138 | |
2019-04-10 | Codechange: Use null pointer literal instead of the NULL macro | Henry Wilson | |
2019-04-09 | Codechange: If something is a vector of strings, use a vector of strings ↵ | Michael Lutz | |
instead of an AutoFreeSmallVector. | |||
2019-03-26 | Codechange: Replaced SmallVector::[Begin|End]() with std alternatives | Henry Wilson | |
2019-03-26 | Codechange: Replaced SmallVector::Append() with ↵ | Henry Wilson | |
std::vector::[push|emplace]_back() | |||
2019-03-20 | Remove: ENABLE_NETWORK switch | Patric 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. |