summaryrefslogtreecommitdiff
path: root/src/table/gameopt_settings.ini
AgeCommit message (Collapse)Author
2021-04-20Remove: "language" field from server/clientPatric Stout
The original idea was that people could find a server they could talk in their native language on. This isn't really used in that way. There are several reasons for removing this: - the client also sends his "language" to the server, but nothing is doing anything with this. - flags are a bad way to represent languages, and over the years we had several (rightfully) complaints about this. - most servers have their language set to "All", and prefix the servername with the language it is about. This is a much more efficient way to do the same. All in all, this feature should go back to the drawing board. Maybe it could work in another form, but this form is not it.
2021-03-01Codechange: validate that "max" value of settings fit in their storagePatric Stout
This is an easy mistake to make, so protect us against making such mistakes, by validating it doesn't happen.
2021-03-01Fix: old snow_line_height had a higher maximum value than could be storedPatric Stout
So any old game made with this setting was overflowing anyway; not really a lot we can do about that now.
2021-02-17Codechange: Allow early-load settings that are not misc settings.Michael Lutz
2021-02-13Codechange: Don't use cpp_offsetof in the save/load code.Michael Lutz
Many of the member variables that are used in save/load are inside types that are not standard layout types. Using pointer arithmetics to determine addresses of members inside types that are not standard layout is generally undefined behaviour. If we'd use C++17, it is conditionally supported, which means each compiler may or may not support it. And even then using it for individual array elements is syntactically not supported the the standard offsetof function. Unfortunately, the trickery employed for saving linkgraph settings causes quite some clutter in the settings ini files.
2020-12-15Feature: new velocity unit "tiles/day" (#8278)jostephd
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-04-29Codechange: Set size of SettingGuiFlag & SettingDescType enums, and use them ↵Charles Pigott
properly
2019-04-11Codechange: NULL -> nullptr in settings files.peter1138
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-02-02Codechange: Convert saveload numbers to enum values.Peter Nelson
(This was mostly achieved with a few in-place regexes)
2019-02-02Codechange: Make saveload version upper bound exclusive, i.e. version object ↵Peter Nelson
was removed instead of version object last appeared.
2014-01-02(svn r26206) -Fix [FS#5829]: Run everything from ini, obg, obs, obs, ... ↵frosch
files through str_validate.
2013-06-29(svn r25508) -Change: split unit localisation choice into a choice per type ↵rubidium
of unit, and move it to the advanced settings -Feature [FS#5482]: have tractive effort in imperial (lbf) and metric (kgf) units -Feature: have weights and volumes in imperial units (short tons, gallons)
2013-03-09(svn r25072) -Codechange: Don't require the custom currency to be the last ↵planetmaker
defined one
2012-12-23(svn r24843) -Codechange: Move news display options into the general ↵frosch
settings framework. (based on patch by eagle_rainbow)
2012-12-05(svn r24790) -Remove: Classic difficulty profiles.frosch
2012-12-05(svn r24789) -Add: Separate setting to control the default settings of newly ↵frosch
added scripts and random AIs.
2012-12-05(svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles ↵frosch
and highscore tables.
2012-12-05(svn r24785) -Add: Various methods to open the OSK. (based on patch by ↵frosch
Eagle_rainbow)
2012-11-08(svn r24671) -Feature [FS#5355]: Add basic/advanced/expert filters to adv. ↵frosch
settings GUI. (Eagle_rainbow)
2012-05-12(svn r24234) -Add: Add help-string infrastructure to the ini filesalberth
2011-11-25(svn r23326) -Fix [FS#4852] (r23239): snow line for very old savegames ↵rubidium
wasn't retrieved from the savegame anymore
2011-11-17(svn r23239) -Fix: saving/loading the snow line height twice, especially ↵rubidium
when the values are not the same causes some nasty problems... like desyncs
2011-11-03(svn r23084) -Codechange: get rid of a redundant variablerubidium
2011-03-06(svn r22210) -Add: Add a variable for the value strings in the settings tables.alberth
2011-03-06(svn r22207) -Add: Add the copyright message to the new ini files.alberth
2011-03-05(svn r22199) -Cleanup-ish: replace the shortcut macros for (gui)flags with ↵rubidium
their more clearly named (longer) constant names
2011-03-05(svn r22197) -Cleanup: remove the distinction between conditional and ↵rubidium
non-conditional settings; with default from and to savegame versions all can be conditional. They previously were as well; the non-conditional ones were macros of the conditionals with to/from saveload versions hardcoded
2011-03-05(svn r22196) -Codechange: use default values for the from and to of savegame ↵rubidium
versions as well
2011-03-05(svn r22194) -Codechange: use the defaults feature of settingsgen to remove ↵rubidium
the need to state the "default" value for all items
2011-03-03(svn r22172) -Add: Add ini files containing the table/settings data.alberth