Peter Nelson
e80992fc47
Codefix: Change method to take const pointer instead of using const_cast. ( #13525 )
2025-02-10 22:10:36 +00:00
Loïc Guilloux
7fbfaa1b54
Fix #13520 : [Script] doxygen ignored 'constexpr' constants ( #13523 )
2025-02-10 23:05:31 +01:00
Peter Nelson
687829fa14
Codechange: Use std::unique_ptr for ScriptList::sorter. ( #13517 )
...
Avoids manual pointer management.
2025-02-10 19:20:52 +00:00
translators
faadf00a6a
Update: Translations from eints
...
czech: 25 changes by JakMel
2025-02-10 04:45:03 +00:00
Rubidium
77bf3084da
Codefix f60b3d7f79: compilation failure using GCC-12
2025-02-09 22:51:02 +01:00
Rubidium
37c215f1fd
Fix #13513 , ec492cb267: std::numeric_limits<CompanyMask> not working causes no vehicles to exist
...
std::numeric_limits<T>::max() returns 0 instead of an error when the type is unknown.
Solve it by implementing and using Set() and All() in BaseBitSet in same way as std::bitset.
2025-02-09 22:50:55 +01:00
Tyler Trahan
521b860394
Feature: Prevent towns from upgrading individually-placed houses ( #13270 )
2025-02-09 20:37:06 +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