Peter Nelson
|
ec71f7a216
|
Codechange: Use std::array for temporary NewGRF loading data.
This allows initialisation without memset.
|
2025-03-09 18:03:50 +00:00 |
Peter Nelson
|
2a05a845df
|
Feature: Snow-covered rocks are now visible.
|
2025-03-04 20:39:08 +00:00 |
Rubidium
|
8b7c92dfe3
|
Codechange: explicitly initialise NewGRF-pool-object member variables
|
2025-02-22 15:34:44 +01:00 |
Rubidium
|
b64e8c0aea
|
Codechange: use std::vector/std::span over MallocT for NewGRF bridge sprites
|
2025-02-22 15:34:32 +01:00 |
Rubidium
|
3e511f2ce7
|
Codechange: remove ZeroedMemoryAllocator from GRFFile
|
2025-02-22 14:58:26 +01:00 |
Jonathan G Rennison
|
8566030c53
|
Cleanup: Adjustments to comments to match code changes (#13636)
|
2025-02-22 13:28:35 +00:00 |
Peter Nelson
|
9de913dd21
|
Codechange: Use helper to set grf_prop's grffile and grfid together. (#13612)
|
2025-02-18 22:33:13 +00:00 |
Peter Nelson
|
8f14894024
|
Add: NewGRF Badges.
|
2025-02-16 22:24:25 +00:00 |
Peter Nelson
|
0af5d5a9e6
|
Codechange: Make non-generic GRF string ids unique per feature.
This prevents engine name strings conflicting with generic strings if more than 53,248 engines are defined.
|
2025-02-16 22:24:25 +00:00 |
Rubidium
|
fd4adc55e3
|
Codechange: replace INVALID_X with XID::Invalid() for PoolIDs
|
2025-02-16 20:23:00 +01:00 |
Rubidium
|
7e04651220
|
Codechange: strongly type EngineID
|
2025-02-16 14:50:15 +01:00 |
Rubidium
|
9015c3651f
|
Codechange: make EngineID an enum
|
2025-02-16 14:50:15 +01:00 |
Rubidium
|
a50c953854
|
Codefix: Clone should make a clone, not copy some data to another instance
|
2025-02-16 12:31:25 +01:00 |
Rubidium
|
faa845398f
|
Codechange: use std::vector for NewGRFSpriteLayout registers
|
2025-02-16 12:31:25 +01:00 |
Rubidium
|
44506ebc86
|
Codechange: use span size over terminator object
|
2025-02-16 11:19:12 +01:00 |
Peter Nelson
|
ff7eb996e6
|
Codechange: Use variable storage for GrfProps with cargo-type groups. (#13557)
Slots are only allocated when used instead of being reserved.
Array-based GrfProps are still used when the number of options is more limited.
|
2025-02-14 18:30:17 +00:00 |
Rubidium
|
069ff846e4
|
Codechange: use std::vector/std::span for DrawTileSprites over malloc-ed table
|
2025-02-14 16:01:45 +01:00 |
Jonathan G Rennison
|
d06b371254
|
Cleanup: Fix various spelling errors
|
2025-02-12 22:44:51 +01:00 |
Peter Nelson
|
1ed685b5c1
|
Codechange: Use EnumBitSet.Any(). (#13512)
|
2025-02-09 20:16:16 +00:00 |
Peter Nelson
|
d61b376998
|
Codechange: Use EnumBitSet for CargoClasses. (#13491)
|
2025-02-08 08:46:38 +00:00 |
Peter Nelson
|
fb70a7fe7e
|
Codechange: Use EnumBitSet for IndustryTileSpecialFlags.
|
2025-02-07 12:30:06 +00:00 |
Peter Nelson
|
1916454776
|
Codechange: Use EnumBitSet for IndustryLifeTypes.
|
2025-02-07 12:30:06 +00:00 |
Peter Nelson
|
2bb3f368e3
|
Codechange: Use EnumBitSet for IndustryBehaviours.
|
2025-02-07 12:30:06 +00:00 |
Peter Nelson
|
17f6da413d
|
Codechange: Use EnumBitSet for RoadStopSpecFlags.
|
2025-02-04 18:52:08 +00:00 |
Peter Nelson
|
1a6e7f2162
|
Codechange: Use EnumBitSet for StationSpecFlags.
|
2025-02-04 18:52:08 +00:00 |
Peter Nelson
|
e114ed357d
|
Codechange: Use EnumBitSet for ObjectFlags. (#13441)
|
2025-02-02 21:15:03 +00:00 |
Peter Nelson
|
6f52a977a8
|
Codechange: Use EnumBitSet for GRFConfigFlags.
This is renamed from `GCF_Flag` didn't match convention.
|
2025-02-02 10:49:45 +00:00 |
Peter Nelson
|
59354576d4
|
Codechange: Use EnumBitSet for LandscapeTypes and remove LandscapeID. (#13436)
|
2025-02-01 23:09:18 +00:00 |
Peter Nelson
|
95bd53ddf1
|
Codechange: Use EnumBitSet for BuildingFlags.
|
2025-02-01 14:16:25 +00:00 |
Peter Nelson
|
113205c540
|
Codechange: Use EnumBitSet for HouseExtraFlags.
|
2025-02-01 14:16:25 +00:00 |
Peter Nelson
|
6c4ddb242a
|
Codechange: Use EnumBitSet for EngineMiscFlags.
|
2025-01-31 18:55:31 +00:00 |
Peter Nelson
|
5664b1e2f6
|
Codechange: Use std::vector for GRFConfig lists. (#10835)
This replaces the C-style custom managed linked-list and allows use of iterators etc.
|
2025-01-31 17:09:09 +00:00 |
Peter Nelson
|
40aeedeade
|
Codechange: Use EnumBitSet for callback masks.
|
2025-01-31 17:08:24 +00:00 |
Peter Nelson
|
b9ae833e96
|
Codechange: Use std::array for water features.
Replaces a memset() with fill().
|
2025-01-31 17:08:24 +00:00 |
Peter Nelson
|
917d5cc75d
|
Codechange: Use EnumBitSet for RoadTypeFlags and RailTypeFlags. (#13415)
|
2025-01-30 22:08:51 +00:00 |
Peter Nelson
|
05ac1dd888
|
Codechange: Use EnumBitSet for TileFlags.
|
2025-01-29 21:46:39 +00:00 |
Peter Nelson
|
3c2706f859
|
Codechange: Use EnumBitSet for EngineDisplayFlags.
|
2025-01-29 21:46:39 +00:00 |
Peter Nelson
|
afc0745aa2
|
Codechange: Specify underlying type for all enums excluding those exposed to scripts. (#13383)
|
2025-01-28 22:17:34 +00:00 |
Rubidium
|
4099acb946
|
Codechange: replace BSWAP32/BSWAP16 with std::byteswap
|
2025-01-28 19:22:12 +01:00 |
Peter Nelson
|
9b947a37b8
|
Codechange: Pass GRFConfig by reference where feasible. (#13388)
In places where a GRFConfig is passed by pointer and not checked for nullptr, use a reference instead.
|
2025-01-26 22:41:08 +00:00 |
Rubidium
|
e894a5880c
|
Codechange: rename CargoID to CargoType and amend related variables/comments
|
2025-01-26 18:07:10 +01:00 |
Peter Nelson
|
d22fd78b1c
|
Codefix: Sprite offsets and counts are not SpriteIDs. (#13336)
|
2025-01-19 15:58:13 +00:00 |
Peter Nelson
|
6c88169d7b
|
Codechange: Use std::variant instead of type and union to evaluate Action 14. (#13328)
AllowedSubtags are now passed by span, so no terminator is required, and are now static constexpr.
|
2025-01-17 20:53:19 +00:00 |
Peter Nelson
|
2f0b52d5b3
|
Codechange: Use sorted vector for NewGRF parameter value names. (#13326)
This replaces use of a std::map per GRF-parameter.
|
2025-01-17 19:33:11 +00:00 |
Peter Nelson
|
74bd064d10
|
Codechange: Pass first and last ID range instead of first and count. (#13319)
This allows range checks and loops to be slightly simplified.
|
2025-01-14 21:22:52 +00:00 |
Rubidium
|
3541ba4d0c
|
Codechange: use unique_ptr over CallocT and avoid copying table
|
2025-01-13 23:13:28 +01:00 |
Peter Nelson
|
11529d865b
|
Codefix: [NewGRF] Don't read an extended byte into uint8_t. (#13302)
|
2025-01-11 15:53:24 +00:00 |
Peter Nelson
|
2d372fa516
|
Codechange: NewGRF strings are not StringIDs.
Add GRFStringID type and use it when dealing with GRF-local string IDs.
|
2025-01-02 20:03:40 +00:00 |
Peter Nelson
|
4edde7d6de
|
Change: [NewGRF] Use deferred string mapping for bridge and currency names. (#13230)
This means that the strings can now be defined after the properties using them, as is the case with all other features.
|
2025-01-02 09:35:15 +00:00 |
Peter Nelson
|
0464e6bd13
|
Codefix: Remove obsolete industry string mapping. (#13229)
These strings are already correctly mapped by the deferred AddStringForMapping() system.
|
2025-01-01 22:37:43 +00:00 |