Susan
e85245c476
Cleanup: move constants to be closer to their use
2025-02-14 15:08:00 +00:00
Susan
e9d0255480
Codechange: Use arrays instead of vectors
2025-02-14 14:53:26 +00:00
Susan
685cee5bf3
Codechange: const correctness
2025-02-12 15:38:28 +00:00
Susan
d253de7269
Codechange: Use Pascal case, Points, and less vectors
2025-02-09 21:57:23 +00:00
Susan
b0a4c5e188
Change: Improved tree placement at worldgen
...
for real this time.
2025-02-09 20:36:40 +00:00
Peter Nelson
1ed685b5c1
Codechange: Use EnumBitSet.Any(). ( #13512 )
2025-02-09 20:16:16 +00:00
Patric Stout
86841ba1f0
Codechange: no longer add "src" to the include-path ( #13511 )
2025-02-09 19:43:15 +00:00
Peter Nelson
588597805d
Feature: Place rocks on "too steep" tiles when fixing slopes. ( #13462 )
...
When generating maps or loading heightmaps, the terrain height is altered to prevent slopes that can't be represented.
During this, there is now a chance of these tiles being turned into a rocky tile.
Chance of placing rocks is based on the height. This gives a rocky mountain appearance without affecting all peaks.
2025-02-09 18:37:25 +00:00
Peter Nelson
ba20ea5d18
Codechange: Use EnumBitSet for SpriteComponent. ( #13509 )
2025-02-09 18:37:01 +00:00
Tyler Trahan
b2f5a4901b
Add: Setting to allow placing houses manually in-game ( #13266 )
2025-02-09 18:34:31 +00:00
Rubidium
01b639bb23
Codechange: replace instance of raw uint16_t with CompanyMask
2025-02-09 19:24:51 +01:00
Rubidium
ec492cb267
Codechange: make CompanyMask a BaseBitSet implementation
2025-02-09 19:24:51 +01:00
Rubidium
e972033e11
Codechange: introduce BaseBitSet as base for EnumBitSet
2025-02-09 19:24:51 +01:00
Rubidium
b9777269ce
Codechange: strongly type SignID
2025-02-09 18:05:01 +01:00
Rubidium
42d6a12874
Codechange: replace union with std::variant for ViewportSignKdtreeItem::id
2025-02-09 18:05:01 +01:00
Rubidium
cd4482b5df
Codechange: make TownID an enum
2025-02-09 18:05:01 +01:00
Rubidium
cda9c2759e
Codechange: make SignID an enum
2025-02-09 18:05:01 +01:00
Rubidium
1e24b41f22
Codechange: strongly type GroupID
2025-02-09 16:52:21 +01:00
Rubidium
798e9f229c
Codechange: strongly type DepotID
2025-02-09 16:52:21 +01:00
Rubidium
d55b9cff9d
Codechange: strongly type ClientPoolID
...
Also remove some of the artifical documented limits as they are not true; the
ClientPoolID was not sent over the network, so its size isn't of concern.
2025-02-09 16:52:21 +01:00
Rubidium
47721edb1d
Codechange: strongly type AdminID
2025-02-09 16:52:21 +01:00
Rubidium
6535fc1f80
Codechange: add helpers to VehicleListIdentifier for ConvertibleThroughBase
2025-02-09 16:52:21 +01:00
Patric Stout
f60b3d7f79
Codechange: [Script] rework how compat-scripts work and are loaded ( #13504 )
...
- compat_NNN.nut files now only defines what is needed to downgrade from API NNN + 1 to NNN.
- Automatically load all required compatibility files based on the API version of the script, starting with the latest.
2025-02-09 15:04:04 +00:00
Peter Nelson
2824e790ec
Codechange: Use EnumBitSet for SortListFlags. ( #13506 )
2025-02-09 14:38:35 +00:00
Maxim Leshchenko
5dc02a686f
Change: [MacOS] Put the icon in a rounded rectangle ( #13446 )
2025-02-09 14:33:04 +00:00
kg
1786e1b80e
Add: Press Ctrl to build diagonal canals in game mode ( #13432 )
2025-02-09 15:30:00 +01:00
Rubidium
155d7de132
Codechange: change Source into a class with conversion helpers
...
A Source is either a CompanyID (Headquarters), IndustryID or TownID.
When making those types stronger a lot of casts would be needed, but
with these simple helpers the intent is shown more clearly.
2025-02-09 15:28:35 +01:00
Rubidium
2929411130
Codechange: introduce ReferenceThroughBaseContainer
...
This provides support for ConvertibleThroughBase positions passed to the
functions of a container that return a reference, specifically 'at(pos)'
and 'operator[](pos)'.
2025-02-09 15:28:03 +01:00
Rubidium
44a979559a
Codechange: strongly type Subsidy
2025-02-09 15:07:29 +01:00
Rubidium
3aa60fd479
Codechange: strongly type StoryPageID and StoryPageElementID
2025-02-09 15:07:29 +01:00
Rubidium
5ca5790ac8
Codechange: strongly type SpriteGroupID
2025-02-09 15:07:29 +01:00
Rubidium
f9f19de8c2
Codechange: strongly type RoadStopID
2025-02-09 15:07:29 +01:00
Rubidium
d10499f2f1
Codechange: strongly type PersistentStorageID
2025-02-09 15:07:29 +01:00
Rubidium
9ab36b594d
Codechange: strongly type OrderID and OrderListID
2025-02-09 15:07:29 +01:00
Rubidium
d61d643906
Codechange: strongly type OrderBackupID
2025-02-09 15:07:29 +01:00
Rubidium
cb3db3cedd
Codechange: strongly type ObjectID
2025-02-09 15:07:29 +01:00
Rubidium
c311e6e4a9
Codechange: strongly type LinkGraphID and LinkGraphJobID
2025-02-09 15:07:29 +01:00
Rubidium
6c8915fdbc
Codechange: strongly type LeagueTableID and LeagueTableElementID
2025-02-09 15:07:29 +01:00
Rubidium
6aada55e96
Codechange: strongly type GoalID
2025-02-09 15:07:29 +01:00
Rubidium
7cc194e745
Codechange: strongly type EngineRenew
2025-02-09 15:07:29 +01:00
Rubidium
b575d5b8e4
Codechange: strongly type CargoPacket
2025-02-09 15:07:29 +01:00
Rubidium
4803ca7462
Codechange: strongly type CargoPayment
2025-02-09 15:07:29 +01:00
Rubidium
07dd5bf01d
Codechange: support strongly typed pool element IDs in squirrel/saveload
2025-02-09 15:07:29 +01:00
Rubidium
30127dfe90
Codechange: prepare the pool for strongly typed pool element IDs
2025-02-09 15:07:29 +01:00
Patric Stout
82c5e37b46
Change: have a better title for the Online Content window ( #13505 )
2025-02-09 13:55:16 +00:00
Rubidium
0f5f5714b3
Codechange: add unit test against over optimisation of enum-bitmasks
2025-02-09 14:44:23 +01:00
Rubidium
90f5a9440c
Codechange: add automation for (re)setting the 'work: needs rebase' label on PRs
2025-02-09 14:44:13 +01:00
Rubidium
ce07ea00b8
Codechange: add and use GetDepotDestinationIndex map accessor
2025-02-09 14:27:51 +01:00
Peter Nelson
dccc6185b9
Codechange: Change internal format of encoded strings to improve robustness and allow expansion. ( #13499 )
2025-02-09 12:45:50 +00:00
Rubidium
1193852007
Codechange: do not use ScriptCompany::CompanyID outside of the script API
2025-02-09 12:04:42 +01:00