Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-13 | Codechange: convert printf DEBUG statements to fmt Debug statements | rubidium42 | |
2021-06-12 | Change: Skip creating a RealSpriteGroup when there is only one result. | Peter Nelson | |
This avoids checking RSG for empty sets every time they are evaluated. This might alter behaviour in cases of a malformed NewGRF file. | |||
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-15 | Codechange: Use std::string GetString where convenient | rubidium42 | |
2021-05-15 | Change: Use gender-neutral pronouns | rubidium42 | |
2021-05-15 | Codechange: comparison result is always the same due to earlier check | Rubidium | |
Practically the length of the handlers not being equal to the number of features is the problem as it means something was forgotten when adding a new feature, so static assert to that and let the existing check on the feature number take care of invalid data from the NewGRFs. | |||
2021-05-13 | Feature: Define refittability of default vehicles using cargo classes. | frosch | |
This ensures that default vehicles can transport any NewGRF defined cargos, albeit with weird graphics and vehicle names. This also changes the refittability of default vehicles with default industries. | |||
2021-05-13 | Fix: Resolve cargo-types of default vehicles via their cargo label. | frosch | |
Default vehicles now behave as if they had a cargo translation table. This fixes default vehicles carrying seemingly random cargos, if NewGRF industry sets are present. This behavior is disabled, when a NewGRF touches any of the cargo-type or refitting properties. In that case it's up to the NewGRF to define its own cargo translation table. | |||
2021-05-13 | Codechange: move currency settings to std::string | rubidium42 | |
2021-05-10 | Fix: memory leak due to assigning result of strdup to a std::string | Rubidium | |
2021-05-08 | Codechange: let NewGRF make use of SpriteFile instead of most of the FIO ↵ | Rubidium | |
slot functions | |||
2021-05-08 | Codechange: introduce SpriteFile to be used by the sprite loader instead of ↵ | Rubidium | |
the global FIO slot functionality | |||
2021-05-08 | Codechange: let NewGRF sounds make use of RandomAccessFile instead of the ↵ | Rubidium | |
FIO slot functions | |||
2021-05-02 | Codechange: Validate custom station platform layout tiles are permitted ↵ | Peter Nelson | |
values only. | |||
2021-05-02 | Codechange: Use std::vector for NewGRF station tile sprite layouts. | Peter Nelson | |
2021-05-02 | Codechange: Use std::vector for NewGRF station platform layouts. | Peter Nelson | |
This avoids the need to custom memory management and additional members. This also resolves use-after-free if modifying copied layouts, so presumably nobody has ever done that. | |||
2021-05-02 | Codechange: Warn if randomaction2 group count is not a power of 2. | Peter Nelson | |
Previously noted by a comment, this does not need to be guarded against as non-powers of 2 will not cause issues beyond the choice of results being reduced. | |||
2021-05-02 | Cleanup: Use std::vector in RandomSpriteGroup. | Peter Nelson | |
2021-05-02 | Cleanup: Use std::vector in DeterministicSpriteGroup. | Peter Nelson | |
2021-05-02 | Cleanup: Use std::vector in RealSpriteGroup. | Peter Nelson | |
2021-04-29 | Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loops | glx22 | |
2021-04-02 | Fix: Memory leak of airport tile layout in AirportChangeInfo (prop 0A) (#8928) | Jonathan G Rennison | |
2021-03-26 | Change: rename setting "max_heightlevel" to "map_height_limit" | Patric Stout | |
This better reflects what it is, and hopefully removes a bit of the confusion people are having what this setting actually does. Additionally, update the text on the setting to better inform users what it is doing exactly, so they can make an educated decision on how to change it. Next commit will introduce an "auto" value, which should be the new default. The rename has as added benefit that everyone will start out on the "auto" value. | |||
2021-02-21 | Fix #8276: Crash when a NewGRF object's size was not set | Charles Pigott | |
2021-01-08 | Codechange: Remove min/max functions in favour of STL variants (#8502) | Charles Pigott | |
2020-12-27 | Codechange: Replace assert_compile macro with static_assert | Charles Pigott | |
2020-12-27 | Add: [NewGRF] Patch flag to test if inflation is on or off. | Michael Lutz | |
2020-12-15 | Fix: [NewGRF] Action 7/9 conditions 0x0F to 0x12 failed, if 'param' was ↵ | frosch | |
0x88. (#8382) Fix: [NewGRF] Action 7/9 conditions 0x0B to 0x12 failed, if 'param' was 0x85. These conditions are supposed to ignore 'param' entirely. | |||
2020-12-15 | Codechange: Make use of the improved C++17 emplace_back function. | Michael Lutz | |
2020-06-01 | Codechange: remove has_newindustries global | Yexo | |
2020-06-01 | Codechange: remove has_newhouses global | Yexo | |
2020-06-01 | Fix #8166: don't crash on loading an invalid roadtype newgrf | Yexo | |
Initialization code for GRFFile::roadtype_map was copied from railtype_map. But while RailType is a byte-sized enum and could thus be initialized via memset, RoadType doesn't have a defined size. | |||
2020-05-21 | Codechange: Use std::string for storing GRF error messages. | Michael Lutz | |
2020-05-21 | Codechange: Use std::string when translating TTDP NewGRF string codes. | Michael Lutz | |
2020-05-21 | Codechange: Replace custom linked list for GRF texts with STL vectors and ↵ | Michael Lutz | |
strings. | |||
2020-05-21 | Codechange: Replace SmallPair with std::pair. | Michael Lutz | |
std::pair is already the smallest possible pair, and it already handles non-POD types correctly. | |||
2020-01-26 | Feature: NewGRF callback profiling (#7868) | Niels Martin Hansen | |
Adds a console command newgrf_profile to collect some profiling data about NewGRF action 2 callbacks and produce a CSV file. | |||
2019-12-23 | Fix: Action7/9 conditions 0F..12 reported roadtypes as valid tramtypes and ↵ | frosch | |
vice versa. | |||
2019-12-23 | Cleanup: Properties 12 and 15 do not exist for road/tramtypes. | frosch | |
2019-12-21 | Codechange: Replace FOR_ALL_ENGINES with range-based for loops | glx | |
2019-11-23 | Fix #7836: Check coherency of NewGRF parameter min/max (#7840) | glx22 | |
2019-11-10 | Cleanup: Removed SVN headers | S. D. Cloudt | |
2019-10-19 | Codechange: Use std::vector for industry tile layouts | Niels Martin Hansen | |
2019-09-29 | Fix: Some typos found using codespell | JMcKiern | |
2019-05-01 | Feature: Add NotRoadTypes (NRT) | peter1138 | |
2019-04-29 | Codechange: Set VehicleType's base type to byte instead of using VehicleTypeByte | Charles Pigott | |
2019-04-20 | Fix: Bounds check access to railtype_map. (#7529) | PeterN | |
2019-04-13 | Cleanup: Fix alignment after NULL -> nullptr change. | peter1138 | |
2019-04-10 | Codechange: Use null pointer literal instead of the NULL macro | Henry Wilson | |
2019-03-30 | Fix #7447, 3357cac847: Action 4 has feature 48 'original strings'. (#7449) | frosch | |