Peter Nelson
2bf84ea78c
Codechange: make GrfSpecFeature a scoped enum ( #15487 )
2026-04-19 19:04:27 +01:00
Peter Nelson
73dafe5021
Codechange: use EnumBitSet for DisallowedRoadDirections ( #15479 )
2026-04-13 22:48:44 +01:00
Peter Nelson
b33b0d92a0
Codechange: make RoadBits an EnumBitSet ( #15476 )
2026-04-13 21:23:17 +01:00
Peter Nelson
a5a60c8615
Codechange: make RoadTramType a scoped enum, and use EnumBitSet ( #15477 )
2026-04-13 18:15:41 +01:00
Peter Nelson
636fcf3af3
Codechange: make TownProductionEffect a scoped enum
2026-04-12 14:46:54 +01:00
Peter Nelson
7c6da0ae6d
Codechange: make TownAcceptanceEffect a scoped enum
2026-04-12 14:46:54 +01:00
Peter Nelson
4db1672611
Codechange: make TropicZone a scoped enum ( #15442 )
2026-04-07 08:33:16 +01:00
Peter Nelson
736ed61c1c
Codechange: remove size_t indexer from TypedIndexContainer
...
Makes container index even stronger.
2026-04-06 15:05:30 +01:00
Peter Nelson
a9d7397a77
Codechange: Pass rail and roadtypes separately for tunnel and bridge commands. ( #15438 )
...
Avoids passing and casting each via an unrelated type, at the expense of an extra command parameter.
2026-04-06 14:45:22 +01:00
Peter Nelson
b325575105
Add: Record history of cargo delivered to towns ( #15184 )
2026-03-23 21:32:18 +00:00
Rito12
f7e20ecb4e
Cleanup: STR_ERROR_TOO_CLOSE_TO_EDGE_OF_MAP_SUB is not needed.
2026-02-23 17:14:56 +01:00
Cyprian Klimaszewski
3c8d7df657
Codechange: Make documentation comments for some enums and their members recognised by doxygen.
2026-02-21 15:05:13 +01:00
Rubidium
9a5187bac8
Codechange: document return types and parameters
2026-02-21 06:13:15 +01:00
Rubidium
d6d6ab1b4f
Codechange: use designated initialisers for _tile_type_town_procs
2026-02-18 17:03:33 +01:00
Peter Nelson
10f9f13c64
Codechange: use enum class for TreeGround ( #15222 )
2026-02-03 08:59:56 +00:00
Peter Nelson
5c2a37d03e
Codechange: use enum class for ClearGround
2026-02-02 18:49:20 +00:00
Rubidium
c6c06e13eb
Codefix: wrong parameter names and partially missing parameters
2026-02-02 16:31:46 +01:00
Peter Nelson
f25e1f8be1
Fix b4ac5e2231: don't compare clear density with ClearGround ( #15217 )
2026-02-02 13:02:56 +00:00
Rubidium
03c24810b1
Codechange: use scoped enums for timer enumerations, rename one enum
2026-01-29 12:42:27 +01:00
Rubidium
4adf494ebc
Codechange: enum-class-ify Commands
2026-01-28 23:32:51 +01:00
Peter Nelson
014bf7e750
Fix bd57aee3a9: Town supplied history incorrectly clamped to uint16_t ( #15183 )
2026-01-28 21:13:56 +00:00
Cyprian Klimaszewski
97f3e5b70f
Codechange: Make TileType enum an enum class.
2026-01-24 08:34:05 +01:00
Cyprian Klimaszewski
322ce224b4
Codechange: Make Price an enum class.
2026-01-14 22:07:02 +01:00
Rubidium
0500198bea
Codechange: some documentation for enumerations
2026-01-13 21:54:24 +01:00
Tyler Trahan
18f2f7eb2d
Codechange: Use enum class for setting values ( #15074 )
2026-01-10 22:40:48 +00:00
Tyler Trahan
09a8b1cf5c
Feature: Allow placing an area of 1x1 houses ( #14708 )
2026-01-08 20:43:50 +00:00
Rubidium
2fcd4e189a
Codechange: replace 'new PoolItem(...' with 'PoolItem::Create(...'
2026-01-03 16:04:32 +01:00
Jonathan G Rennison
0ec507d4c5
Fix b4ac5e22: Incorrect TileIndex used in TownCanBePlacedHere ( #15002 )
2026-01-01 13:31:37 +00:00
Jonathan G Rennison
8f598b442a
Fix b956af63: Incorrect TileIndex used in FindNearestGoodCoastalTownSpot ( #14988 )
2025-12-26 14:06:21 +00:00
Peter Nelson
ef4687895e
Add: Setting to control minimum distance between towns. ( #14893 )
...
Backported from JGRPP.
2025-12-11 11:28:04 +00:00
Tyler Trahan
7f196c6652
Feature: House placer mode to replace existing houses ( #14469 )
2025-12-07 12:05:47 -05:00
Cyprian Klimaszewski
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
Rubidium
064f4df6cc
Fix: always try to create at least one town
2025-12-06 12:55:47 +01:00
Tyler Trahan
faf3bb9739
Fix #9071 : Don't consider tram tracks when growing towns ( #14833 )
2025-12-01 11:44:28 -05:00
Tyler Trahan
b4ac5e2231
Change: Ensure generated towns have enough room ( #14803 )
2025-11-25 05:39:17 -05:00
Tyler Trahan
d1376d0b67
Fix #14737 : Don't scale custom town and industry counts by land area ( #14738 )
2025-10-27 18:18:31 +00:00
Peter Nelson
a1920fc225
Change: Scale towns/industries by amount of land tiles. ( #10063 )
2025-10-24 16:32:09 -04:00
Peter Nelson
5c89dff677
Codechange: Iterate road/tram masks instead of checking each type. ( #14716 )
2025-10-23 20:59:58 +01:00
Peter Nelson
484ed1008a
Codechange: Make TownRatingCheckType an enum class. ( #14652 )
2025-09-23 22:00:34 +01:00
Peter Nelson
2b164111a9
Codechange: Use EnumBitSet for TownFlags. ( #14651 )
2025-09-22 19:04:55 +00:00
Rubidium
7c0f69a8fe
Codefix: typos in comments and strings
2025-08-31 10:30:37 +02:00
Peter Nelson
f30f808b50
Codechange: Implement tile proc handler to test for building bridge over tile.
2025-08-20 21:40:41 +01:00
Su
85af200788
Add: Identify cities on the main viewport by appending an icon to their names ( #14504 )
...
Co-authored-by: Peter Nelson <peter1138@openttd.org >
2025-08-15 16:49:25 -04:00
Peter Nelson
bd57aee3a9
Add: Town cargo history graphs. ( #14461 )
2025-08-02 23:19:43 +01:00
Peter Nelson
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
Peter Nelson
67e56391c7
Fix #8167 : No error sub-message when trying to clear protected buildings. ( #14444 )
2025-07-14 23:23:15 +01:00
Peter Nelson
ecafbf884e
Add: Allow separate expansion of town buildings and roads in scenario editor. ( #14341 )
2025-06-07 13:56:43 +00:00
frosch
c6fa5022cb
Add: [NewGRF] All callbacks returning D0xx strings, have now the option to return any string id via register 0x100.
2025-05-09 12:39:11 +02:00
frosch
6faa667644
Codechange: Remove global GetRegister(), instead return 100+ registers directly from GetXxxCallback().
2025-05-06 22:24:41 +02:00
frosch
592cc49b62
Codechange: Turn _grow_town_result into a local variable in GrowTownAtRoad.
2025-05-06 20:58:17 +02:00