Peter Nelson and GitHub
b2c9e33e0f
Codechange: make FoundationPart a scoped enum ( #15738 )
2026-06-17 07:55:04 +01:00
Peter Nelson and GitHub
10cad52ebb
Codechange: make SpriteCombineMode a scoped enum ( #15737 )
2026-06-17 07:54:40 +01:00
Peter Nelson and GitHub
185e942b44
Codechange: make TileHighlightType a scoped enum ( #15736 )
2026-06-17 07:54:21 +01:00
Rubidium and rubidium42
33ae037aaa
Codechange: make SpecialMouseMode scoped
2026-06-17 05:32:34 +02:00
Rubidium and rubidium42
5a6469ad6f
Codechange: make EventState a scoped enum
2026-06-15 11:20:52 +02:00
Rubidium and rubidium42
760cd803c5
Codechange: make TooltipCloseCondition scoped
2026-06-14 21:27:32 +02:00
Peter Nelson and Peter Nelson
c3b0d71973
Codechange: use EnumRange over many enum loops
2026-06-13 21:54:42 +01:00
Peter Nelson and GitHub
7e2bcaf792
Codechange: avoid magic numbers and generic types when drawing autorail ( #15689 )
2026-06-08 22:22:15 +01:00
Cyprian Klimaszewski and GitHub
9d233c441d
Codechange: Use CornerIndexArray instead of C-style arrays. ( #15685 )
2026-06-06 21:55:11 +01:00
Peter Nelson and Peter Nelson
0e951f3528
Codechange: make TransparencyOption a scoped enum
2026-05-31 18:59:51 +01:00
Peter Nelson and Peter Nelson
d6783335ca
Codechange: make Direction a scoped enum
2026-05-31 13:11:53 +01:00
Peter Nelson and Peter Nelson
f010c21f1a
Codechange: make DiagDirection a scoped enum
2026-05-31 13:11:53 +01:00
Rubidium and rubidium42
2ff631caa2
Codechange: make GameMode a scoped enum
2026-05-30 23:20:20 +02:00
Peter Nelson and Peter Nelson
6c39def287
Codechange: use EnumIndexArray for ZoomLevel-indexed arrays
2026-05-26 17:12:50 +01:00
Rubidium and rubidium42
bcda4a72ee
Codechange: make WindowClass a scoped enum
2026-05-20 21:39:04 +02:00
Peter Nelson and GitHub
e7845e48dc
Codechange: make DisplayOption a scoped enum/enum bitset ( #15611 )
2026-05-19 06:21:38 +01:00
Rubidium and rubidium42
c59d64c132
Codechange: separate TextColour enumeration and flags
2026-05-18 08:37:42 +02:00
Peter Nelson and GitHub
7e624beadc
Codechange: make Shade a scoped enum ( #15571 )
...
Renamed from `ColourShade` to `Shade` for brevity.
2026-05-03 15:07:29 +01:00
Jonathan G Rennison and rubidium42
bbe5dbf230
Cleanup: Correct various spelling errors
2026-04-27 21:05:08 +02:00
Richard Wheeler
a2e99c9cfa
Fix: Fix viewport snap back on stop following vehicle ( #15520 )
...
Fixes #15520
2026-04-25 14:30:12 +01:00
Peter Nelson and Peter Nelson
c45aa3c9b6
Codechange: use EnumBitSet for CargoTypes
2026-04-21 17:13:31 +01:00
Rubidium and rubidium42
3b5d46e0bb
Codechange: make Colours a scoped enum
2026-04-19 20:53:52 +02:00
Tyler Trahan
2b530751dd
Feature: Trains with an engine on the rear drive backwards when reversing
2026-04-13 21:52:22 -04:00
Rubidium and rubidium42
7434052eb6
Codechange: make FontSize a scoped enum
2026-04-12 18:10:34 +02:00
Rubidium and rubidium42
2e77b6f9f4
Codechange: document missing parameters and return types
2026-04-06 06:52:23 +02:00
Rubidium and rubidium42
0670c096f7
Codechange: use existing enum over magic number
...
DiagDirection is the enum that comes closest. A new enum doesn't make sense
for just one function, especially if you get sort-of overlapping behaviour.
It would be X::EastToSouth, X::SouthToWest where either can be chosen in case
of the dragging being in the southern direction.
2026-02-23 17:11:02 +01:00
Rubidium and rubidium42
671b62e073
Codechange: document a few parameter and return types
2026-02-18 17:04:49 +01:00
Rubidium and rubidium42
c6c06e13eb
Codefix: wrong parameter names and partially missing parameters
2026-02-02 16:31:46 +01:00
Cyprian Klimaszewski and rubidium42
d17f662490
Codechange: Allow to set cursor directly.
2026-01-30 00:00:53 +01:00
Cyprian Klimaszewski and rubidium42
97f3e5b70f
Codechange: Make TileType enum an enum class.
2026-01-24 08:34:05 +01:00
Kuhnovic and GitHub
8e35553208
Feature: Configurable sign text colors in scenario editor. ( #14743 )
2025-12-08 17:52:19 +01:00
Cyprian Klimaszewski and GitHub
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
mmtunligit and GitHub
3b541d4c74
Codefix: Add comments to SetViewport functions ( #14822 )
2025-11-25 06:04:16 -05: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
a617d009cc
Codechange: Dereference with x-> instead of (*x). ( #14700 )
2025-10-05 15:47:33 +01:00
Rubidium and rubidium42
7c0f69a8fe
Codefix: typos in comments and strings
2025-08-31 10:30:37 +02:00
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 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
Peter Nelson and GitHub
8e2df7809b
Codechange: Add distinct type to hold pixel drawing colour. ( #14457 )
...
This is used for individual pixels as well as line drawing.
2025-07-20 22:57:55 +01:00
Peter Nelson and GitHub
5bf31a431e
Fix 4c8f1b0f81: Hidden-by-facility station signs were not ignored when handling clicks. ( #14326 )
2025-06-03 20:53:53 +00:00
frosch and frosch
61cec33be2
Codechange: Add 'const' to static variables, which are only initialised once.
2025-05-06 18:29:41 +02:00
frosch and frosch
8571af9833
Codechange: Turn ZoomLevel into enum class.
2025-05-03 23:21:09 +02:00
frosch and frosch
7055ea0aee
Codechange: Define sequential operators for ZoomLevel.
2025-05-03 23:21:09 +02:00
Peter Nelson and GitHub
2c59838acb
Codechange: (re)set multiple bitset flags in one call. ( #14017 )
2025-04-18 14:07:57 +01:00
Peter Nelson and Peter Nelson
c982816c0e
Codechange: Manage window viewport via unique_ptr.
2025-04-09 22:03:23 +01:00
Peter Nelson and Peter Nelson
8275bbfb87
Codechange: Pass Viewport by reference.
...
This means we do not have to care what type of pointer is used.
2025-04-09 22:03:23 +01:00
frosch and GitHub
25005cff16
Codefix: std::string_view::data() is not necessarily null terminated. ( #13891 )
2025-03-25 20:32:19 +01:00
Peter Nelson and GitHub
79ef4e98fe
Codechange: Use std::swap() instead of Swap() ( #13883 )
2025-03-24 23:47:34 +00:00
Rubidium and rubidium42
ec647975ad
Cleanup: remove ancient FIXME comments
2025-03-16 05:42:29 +01:00
Rubidium and rubidium42
c13226cdf8
Codefix: do not leave pointers to stack allocations in globals
2025-03-15 21:46:43 +01:00