Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-14 | Codechange: use SLE_STRUCT(LIST) for Linkgraph chunks | Patric Stout | |
2021-06-14 | Codechange: move Save/Load functions of same chunk next to each other | Patric Stout | |
2021-06-14 | Codechange: use SLE_STRUCT(LIST) for GameScript chunks | Patric Stout | |
2021-06-14 | Codechange: use as much of STNN code for STNS as possible | Patric Stout | |
There was a lot of code duplication for no real reason. Now with SLEG_STRUCT support, we can just re-use the code, hopefully making it easier for future-us to make changes to this, without breaking everything for old games. | |||
2021-06-14 | Codechange: use SLE_STRUCT(LIST) for Station chunks | Patric Stout | |
2021-06-14 | Codechange: use SLE_STRUCT(LIST) for Company chunks | Patric Stout | |
2021-06-14 | Codechange: use SLE_STRUCT(LIST) for Town chunks | Patric Stout | |
2021-06-14 | Codechange: remove the special station/vehicle code from SaveLoad | Patric Stout | |
With the new SLEG_STRUCT it is much easier to embed a struct in a struct, where the sub-struct has limitations on when it is being used. This makes both the code easier to read (less magic) and avoids the SaveLoad needing to know all these things about Stations and Vehicles. | |||
2021-06-14 | Codechange: ability to store structs and list of structs in savegames | Patric Stout | |
The commits following this will use this new functionality. Currently, a few places do this manually. This has as drawback that the Save() and Load() code need to be in sync, and that any change can result in (old) savegames no longer loading. In general, it is annoying code to maintain. By putting everything in a description table, and use that for both Save() and Load(), it becomes easier to see what is going on, and hopefully less likely for people to make mistakes. | |||
2021-06-13 | Fix 81062163: for (really) old games, station bus/truck station cache was ↵ | Patric Stout | |
not updated (#9366) | |||
2021-06-13 | Codechange: convert printf DEBUG statements to fmt Debug statements | rubidium42 | |
2021-06-10 | Feature: Configurable subsidy duration | Tyler Trahan | |
2021-06-10 | Codechange: rework CHTS-chunk save/load to be more like the others | Patric Stout | |
2021-06-10 | Codechange: rename SL_LST to SL_REFLIST to highlight the "reference" part | Patric Stout | |
You can easily mistake SlList / SL_LST to be a list of SL_VAR, but it is a list of SL_REF. With this rename, it hopefully saves a few people from "wtf?" moments. | |||
2021-06-10 | Codechange: refactor SlList to use SlStorageHelper | Patric Stout | |
2021-06-10 | Codechange: refactor SlDequeueHelper to work with unsigned and be more generic | Patric Stout | |
Future additions will start using it for std::list too. | |||
2021-06-10 | Codechange: use wrappers to get Var[Mem|File]Type, instead of GB() | Patric Stout | |
2021-06-10 | Codechange: move GetVariableAddress inside SlObjectMember | Patric Stout | |
Also move it to static, as nobody else is using it. | |||
2021-06-08 | Fix: compatible NewGRFs in crash-log reported wrong md5 (#9340) | Patric Stout | |
The text suggests it reports the original md5, but it does in fact report the replaced md5. Now it reports both. | |||
2021-06-07 | Codechange: make [Save|Load]Settings() behave more like other Save/Load code ↵ | Patric Stout | |
(#9335) Prepare the full description and send it to SlObject. This does require some code to be able to read to a SLE_VAR_NULL, like strings etc, as there is no way to know their length beforehand. | |||
2021-06-06 | Codechange: merge guiflags and flags in settings .ini files | Patric Stout | |
It was rather confusing which one was for what, especially as some SaveLoad flags were settings-only. Clean up this mess a bit by having only Setting flags. | |||
2021-06-06 | Codechange: move SLF_NO_NETWORK_SYNC into settings | Patric Stout | |
It is a settings-only flag, so don't pollute SaveLoad code with it. | |||
2021-06-06 | Codechange: move SLF_NOT_IN_SAVE into settings | Patric Stout | |
It is a settings-only flag, so don't pollute SaveLoad code with it. | |||
2021-06-06 | Codechange: remove the unused SLF_HEX flag | Patric Stout | |
2021-06-06 | Codechange: Remove FOR_ALL_CHUNK_HANDLERS | glx22 | |
Co-Authored-By: Patric Stout <truebrain@openttd.org> | |||
2021-06-03 | Codechange: use "[[maybe_unused]]" instead of a wide variety of other ways ↵ | Patric Stout | |
we had While at it, replace OTTD_ASSERT with WITH_ASSERT, as this is always set if assert() is valid. No matter if NDEBUG is set or not. | |||
2021-05-31 | Codechange: C++-ify lists for SaveLoad (#9323) | Patric Stout | |
Basically, this changes "SaveLoad *" to either: 1) "SaveLoadTable" if a list of SaveLoads was meant 2) "SaveLoad &" if a single entry was meant As added bonus, this removes SL_END / SLE_END / SLEG_END. This also adds core/span.hpp, a "std::span"-lite. | |||
2021-05-30 | Codechange: add a wrapper function to find all settings based on prefix (#9312) | Patric Stout | |
2021-05-29 | Codechange: rename str_validate to StrMakeValid(InPlace) (#9304) | Patric Stout | |
This to be more explicit the function changes the value, and not returns yes/no. | |||
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-15 | Change: Use gender-neutral pronouns | rubidium42 | |
2021-05-15 | Fix: empty undocumented branches | rubidium42 | |
2021-05-15 | Fix: comparison of narrow type to wide type in loop (potential for infinite ↵ | Rubidium | |
loops) | |||
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 misc settings to std::string | rubidium42 | |
2021-05-13 | Codechange: Replace TILE_AREA_LOOP with range-based for loops | glx22 | |
2021-05-12 | Change: reworked the debug levels for network facility (#9251) | Patric Stout | |
It now follows very simple rules: 0 - Fatal, user should know about this 1 - Error, but we are recovering 2 - Warning, wrong but okay if you don't know 3 - Info, information you might care about 4 - 5 - Debug #1 - High level debug messages 6 - Debug #2 - Low level debug messages 7 - Trace information | |||
2021-05-12 | Fix #9202: Invalid test for unset NewGRF override mapping. (#9226) | PeterN | |
2021-05-08 | Codechange: Don't save unused NewGRF override mappings. (#9202) | PeterN | |
2021-05-08 | Change: Use gender-neutral pronouns in console command messages (and ↵ | William Davis | |
comments) (#9203) | |||
2021-05-03 | Codechange: Replace FOR_ALL_ROADTRAMTYPES with range-based for loops | glx22 | |
2021-05-02 | Fix: Update text effect size when font zoom is changed. (#9174) | PeterN | |
2021-04-29 | Fix: [MinGW] Set minimum OS version to Windows XP (#9135) | Loïc Guilloux | |
2021-04-22 | Feature: Per-group wagon removal flag. | peter1138 | |
2021-04-22 | Codechange: Replace Group::replace_protection with Group::flags | peter1138 | |
2021-04-17 | Fix: Corrupted savegame could cause heap corruption by writing outside link ↵ | Milek7 | |
graph edge matrix. (#9046) | |||
2021-04-17 | Fix: Corrupted savegame could crash the game by providing invalid gamelog ↵ | Milek7 | |
enums. (#9045) | |||
2021-03-26 | Fix: store the recent new game_creation settings in savegames | Patric Stout | |
This allows us to later on see what someone did, and makes sure that "restart" command still knows how the game was created. |