summaryrefslogtreecommitdiff
path: root/src/table
AgeCommit message (Collapse)Author
2021-02-13Codechange: Remove all remaining uses of cpp_offset.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.
2021-02-13Fix: Desert/rainforest data coordinate 'y' is off by 1 when their 'x' ↵SamuXarick
coordinate is negative
2021-01-14Feature: Choose a sensible window size on a fresh OTTD config file. (#8536)Michael Lutz
2021-01-11Add: [NewGRF] new GUI sprites for 'rename' and 'go to location'.frosch
2021-01-10Fix: add missing variables to NewGRF inspect window.frosch
2021-01-10Add: [NewGRF] vehicle variable 63 to test the tracktype of the current tile ↵frosch
against a given tracktype.
2021-01-08Change: Remove disable_unsuitable_building settingCharles Pigott
This setting is no longer useful, as you can now always build roads, canals, etc.
2021-01-08Fix 2fd871e2af5: load correct ending-year for old (pre 0.7) savegamesPatric Stout
Despite what it looked like, you could never really change the ending-year (it was always reset to 2050 on start-up). See commit 683b65ee1 for details. As a side-effect, the variable that was suppose to store the ending-year was just zero, never containing a real ending-year.
2021-01-08Fix #8050: ending-year of 5000000 allows you to get to year 5000001 and beyondPatric Stout
MAX_YEAR is set to 5000000, but having an ending-year set to the same meant you could bypass this, and play till the uint32 wrapped. The game can either show highscore or wrap year, not both. When you would do both, every year you get the highscore dialog. By changing the maximum value of ending-year to 4999999 we prevent this issue.
2021-01-07Feature: option to auto remove signals when in the way during rail ↵Kuhnovic
construction (#8274)
2021-01-02Change: Default settings improved for new players2TallTyler
2020-12-27Codechange: Use automatic memory management for language pack reading.Michael Lutz
2020-12-27Codechange: Replace assert_compile macro with static_assertCharles Pigott
2020-12-27Change: Disable changing the inflation setting in network games.Michael Lutz
2020-12-25Change: Remove the LAN/Internet combobox from the server list in favour of ↵frosch
adding two separate search buttons.
2020-12-25Feature: Add an option to disable tree growth completely (#8415)Pavel Stupnikov
2020-12-21Cleanup: Rework the CargoSpec macro for improved readability.Xaroth Brook
2020-12-16Change: extend the allowed range for max loan setting (#8386)Pavel Stupnikov
2020-12-15Change: set the default setting for autorenew to on for new games (#8352)Tyler Trahan
2020-12-15Feature: new velocity unit "tiles/day" (#8278)jostephd
2020-12-14Add: new economy "frozen" that stops production changes and industry ↵Pavel Stupnikov
closures (#8282)
2020-12-14Codechange: use \u to indicate unicode chars in strings (#8379)Patric Stout
With \x, we sometimes had to do the "" trick, as the length is not predefined. With C++11 bringing \u to the specs, which has a preset length, we no longer need the "" trick. We set the strings to u8, to ensure all compilers use UTF-8 encoding for the \u characters. This was triggered by newer CLangs, which start to warn if you use "" in the middle of a string, wondering if that was your intention. It is a good question. And this is our answer :)
2020-12-04Fix: [CMake] cross-compiling requires native toolsglx22
2020-06-27Feature: Increase max possible distance from border for oil refineries and rigsdP
2020-06-05Add: introduce CMake for project managementPatric Stout
CMake works on all our supported platforms, like MSVC, Mingw, GCC, Clang, and many more. It allows for a single way of doing things, so no longer we need shell scripts and vbs scripts to work on all our supported platforms. Additionally, CMake allows to generate project files for like MSVC, KDevelop, etc. This heavily reduces the lines of code we need to support multiple platforms from a project perspective. Addtiionally, this heavily improves our detection of libraries, etc.
2020-06-05Cleanup: Add note explaining how settings.h is generated from source.TechGeekNZ
2020-06-05Cleanup: Fix typo in settings.h.preamble.TechGeekNZ
2020-05-21Codechange: Use std::string in the driver and blitter selection code.Michael Lutz
2020-05-21Codechange: Store base set related texts in std::strings.Michael Lutz
2020-02-07Fix #7525: Move autorenew setting to Basic categoryNiels Martin Hansen
2020-01-29Add: [NewGRF] Station variable 6A, querying GRFID of nearby station tiles ↵kiwitreekor
(#7956)
2020-01-04Feature: Show the name of the NewGRF in the build vehicle window.stormcone
2019-12-28Feature: Configurable game ending yearNiels Martin Hansen
Functionally reverts 683b65ee1
2019-12-23Fix: Snowline height interval is now 1, in both World Generation and ↵Samu
Settings windows - Previously, it was 1 in World Gen window, but 5 in Settings window
2019-12-21Fix: Custom sea level default value is now equal to minimum value, not lowerSamu
Custom sea level default value was lower than the minimum
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-10-25Fix: Solved helicopter takeoff issue with international airportsJack McKiernan
Helicopters can now take off from just outside the hangars.
2019-10-25Codechange: Replaced 255's with an enum entry TERMGROUPJack McKiernan
2019-10-25Codechange: Replaced 0's in heading field with TO_ALLJack McKiernan
2019-10-25Fix #6219: Allow taking off from hangar in commuter airportJack McKiernan
Previously, a helicopter in the hangar of a commuter airport would have to wait until HELIPAD2 was free before it could takeoff. Now, a helicopter in the hangar can takeoff from just outside the hangar.
2019-10-19Fix: add savegame version to trading age settingJack Baron
2019-10-19Feature: Configure minimum share trading yearsJack Baron
2019-10-19Codechange: Use std::vector for industry tile layoutsNiels Martin Hansen
2019-09-29Fix: Some typos found using codespellJMcKiern
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-05-11Change: Limit memory allocations for each Squirrel instanceNiels Martin Hansen
This can avoid out-of-memory situations due to single scripts using up the entire address space. Instead, scripts that go above the maximum are killed. The maximum is default 1 GB per script, but can be configured by a setting.
2019-05-11Fix #7463: Promote scroll mode setting to basic category.Michael Lutz
2019-05-09Fix #7565: Incorrect cursor used for placing road/tram tunnels.peter1138
2019-05-05Change: Set default setting in server browser of "Advertised" to "Yes". (#7568)Corns McGowan