Rubidium and rubidium42
dd812125dc
Codechange: make StationNaming a scoped enum and add some documentation
2026-03-06 16:22:36 +01:00
Rubidium and rubidium42
dde097a080
Codechange: document parameters and return types
2026-02-20 16:14:02 +01:00
Rubidium and rubidium42
e5295f86fa
Codechange: use designated initialisers for _tile_type_station_procs
2026-02-18 17:03:33 +01:00
Peter Nelson and Peter Nelson
10379441bc
Codechange: use enum class for DistributionType
2026-02-18 10:57:28 +00:00
Peter Nelson and GitHub
0e25f9245c
Codechange: use PoolID for newgrf class ids ( #15228 )
2026-02-18 09:11:04 +00:00
Peter Nelson and GitHub
7c9f2c71f4
Codechange: remove GetAcceptanceAroundTiles always_accepted out parameter ( #15295 )
...
Return multiple values as std::pair instead of using pointers for out parameters.
2026-02-17 19:14:54 +00:00
Peter Nelson and GitHub
341ab30c4a
Fix #15269 : crash when building drive-through stop on unowned one-way road ( #15270 )
...
Allow over-building drive-through roadstops on unowned one-way roads.
2026-02-13 22:20:55 +00:00
Peter Nelson and GitHub
7341c4d9aa
Fix #14827 : Store random trigger information per-tile. ( #14830 )
2026-02-03 23:01:55 +00:00
Rubidium and rubidium42
c6c06e13eb
Codefix: wrong parameter names and partially missing parameters
2026-02-02 16:31:46 +01:00
Rubidium and rubidium42
67fac86149
Codefix: remove @param documentation for parameters that don't exist anymore
2026-02-01 15:49:41 +01:00
Rubidium and rubidium42
03c24810b1
Codechange: use scoped enums for timer enumerations, rename one enum
2026-01-29 12:42:27 +01:00
Rubidium and rubidium42
4adf494ebc
Codechange: enum-class-ify Commands
2026-01-28 23:32:51 +01:00
Cyprian Klimaszewski and rubidium42
97f3e5b70f
Codechange: Make TileType enum an enum class.
2026-01-24 08:34:05 +01:00
Cyprian Klimaszewski and rubidium42
322ce224b4
Codechange: Make Price an enum class.
2026-01-14 22:07:02 +01:00
Rubidium and rubidium42
2fcd4e189a
Codechange: replace 'new PoolItem(...' with 'PoolItem::Create(...'
2026-01-03 16:04:32 +01:00
Peter Nelson and GitHub
27c5f9a5cd
Fix #14982 : Can't place buoys under bridges. ( #15007 )
...
Bridges can be built over buoys but not the other way around.
2026-01-01 16:31:08 +00:00
Peter Nelson and GitHub
ebdc82ad54
Fix #14921 : Crash during station autorefit if station doesn't accept current cargo type. ( #14924 )
...
Add convenience helpers to correctly retrieve goods entry cargo available/totals.
Avoids having to check if cargo data is available before accessing it, which was missing for autorefit.
2025-12-15 18:06:43 +00:00
Peter Nelson and GitHub
2fc877c2ec
Fix #14871 , 80e58e751a: Possible crash when building NewGRF station under bridge. ( #14872 )
...
Triggered by reading random tile data before the tile is actually created.
2025-12-07 11:59:20 +00:00
Cyprian Klimaszewski and GitHub
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
Rubidium and rubidium42
6e65b2387a
Fix #14802 : close NewGRF inspection window when overbuilding with default station/waypoint
2025-12-06 12:08:03 +01:00
mmtunligit and GitHub
07177467b3
Feature: Signs, waypoint and station names may be moved ( #14744 )
2025-11-24 14:56:19 -05:00
Peter Nelson and GitHub
98275ee5d3
Codechange: Use enum class for water-related enums. ( #14804 )
2025-11-19 20:35:11 +00:00
davidxn and GitHub
4e24c205d6
Fix 741c431: Miscalculated cargo penalty for poor station rating ( #14712 )
2025-11-18 20:18:02 +00:00
Peter Nelson and Peter Nelson
30955da3ce
Codechange: Use enum class for Roadside.
2025-11-17 20:46:05 +00:00
Rito12 and GitHub
70bf84175f
Add: Show height difference in bridge is too low error message. ( #14614 )
2025-10-24 16:27:11 -04:00
Peter Nelson and Peter Nelson
fd32d1447e
Codechange: Remove StationIDStack and SmallStack.
...
Use a std::vector or std::span instead.
2025-10-23 21:02:27 +01:00
Rubidium and rubidium42
e58fdb8840
Codefix: shadowing of variables
2025-09-28 01:19:32 +03:00
Peter Nelson and GitHub
80e58e751a
Fix #14607 : Bridge-over-station discrepancy depending on build order. ( #14608 )
...
When building a custom station, the callback-derived tile layout is ignored during the bridge height test. This caused a discrepancy between building a station under a bridge vs building a bridge over the same station.
Test the station tile layout callback during the bridge height test.
2025-09-24 22:45:18 +01:00
Peter Nelson and GitHub
70d4182850
Fix #14631 , Fix 1cb0cbcb6c: Waypoint customs spec not allocated properly on initial construction. ( #14633 )
...
Split AllocateSpecToStation/RoadStop into Allocate and Assign functions, allowing command tests to occur separately.
2025-09-21 09:32:25 +01:00
Tyler Trahan
20067d2db5
Doc: Update station rating comments and doxygen.
2025-09-20 19:28:40 -04:00
Tyler Trahan
2ab3b5516f
Codechange: Early continue for cargos not moved by this station
2025-09-20 19:28:40 -04:00
Peter Nelson and GitHub
5f84ff5c3f
Change: Allow bridges over docks. ( #14594 )
2025-09-08 21:43:31 +01:00
Peter Nelson and GitHub
6613da5d7e
Fix #14586 , Fix 069ff846e4: Empty station tile layouts incorrectly substituted with default layouts. ( #14587 )
...
It is no longer possible for a layout to be missing, so the nullptr check should have been removed.
2025-09-04 21:11:02 +00:00
Rubidium and rubidium42
4fb749886a
Codefix: typos in variable/constant/function names
2025-08-31 10:30:37 +02:00
Peter Nelson and GitHub
54f328beeb
Codechange: Remove output pointer from GetTileArea(). ( #14530 )
...
This simplifies things and removes undocumented type `ETileArea`
2025-08-22 21:27:31 +01:00
9a294ab2ed
Feature: Allow stations and roadstops under bridges.
...
Bridges above stations will have pillars excluded if they conflict with the station layout.
Partly based on the system implemented in JGRPP.
Co-authored-by: <su@angel-island.zone >
2025-08-20 21:40:41 +01:00
Peter Nelson and Peter Nelson
f30f808b50
Codechange: Implement tile proc handler to test for building bridge over tile.
2025-08-20 21:40:41 +01:00
Peter Nelson and GitHub
1cb0cbcb6c
Codechange: Standardise how AllocateSpecToStation/RoadStop are called. ( #14525 )
...
Replace use of negative value with std::optional and update doxygen.
2025-08-19 18:52:36 +01:00
Peter Nelson and GitHub
376b2f42c9
Fix 0878f71051: Incorrect station layout for even platform counts. ( #14515 )
2025-08-13 23:18:26 +01:00
Peter Nelson and GitHub
0878f71051
Codechange: Add RailStationTileLayout iterator. ( #14510 )
...
This allows iterating a predefined or calculated rail station layout without allocating extra memory and copying.
2025-08-13 17:23:19 +01:00
Peter Nelson and GitHub
1ccbd735d8
Codechange: Extract function to draw custom rail station foundations. ( #14492 )
2025-08-06 23:46:53 +01:00
Peter Nelson and GitHub
921d83c324
Codechange: Unify structures with sprite sub-tile bounds and simplify bounding boxes. ( #14424 )
...
Lots of different structs contain variations on sub-tile bounds with different naming. Unify into a single struct that can be inherited and passed directly to AddSortableSpriteToDraw.
At the same time, offsets now work more logically: sub-tile bounds now specify the bounding box, and an offset can be applied to the sprite.
2025-07-22 00:02:00 +01:00
Jonathan G Rennison and rubidium42
f0447d59d4
Codechange: Use StationID as StationIDStack Titem type
2025-07-20 16:06:03 +02:00
Peter Nelson and GitHub
b2de1ff66f
Fix #14433 : Broken road stop drawing due to incorrect modes conversion. ( #14434 )
...
The mask was treated as a single RoadStopDrawMode instead of a RoadStopDrawModes bitset.
2025-07-14 17:25:53 +01:00
Peter Nelson and GitHub
5766ba51d7
Codefix: Clean up incorrect indentation for multi-line comments. ( #14383 )
2025-06-20 19:01:44 +01:00
Jonathan G Rennison and Peter Nelson
63f1c2aa3a
Codechange: Use TypedIndexContainer for typed index containers
...
Instead of ReferenceThroughBaseContainer
2025-06-12 18:50:49 +01:00
Peter Nelson and GitHub
7c9393e822
Codechange: Remove terminator from airport tile lists. ( #14306 )
2025-05-27 20:23:59 +01:00
Peter Nelson and GitHub
0455627d16
Codechange: Move ownership of Orders to OrderList. ( #13948 )
...
Removes the orders pool, and orders are now stored directly in each OrderList.
Iterating orders now no longer needs to traverse a linked-list, all orders in an OrderList are sequential.
2025-05-23 10:36:28 +01:00
Peter Nelson and Peter Nelson
a7019b859c
Codechange: Use DiagDirections when checking for flat buildable tiles.
2025-05-07 17:31:29 +01:00
frosch and frosch
6faa667644
Codechange: Remove global GetRegister(), instead return 100+ registers directly from GetXxxCallback().
2025-05-06 22:24:41 +02:00