Commit Graph

32839 Commits

Author SHA1 Message Date
translators dbb8096a52 Update: Translations from eints
english (us): 5 changes by 2TallTyler
2026-06-09 05:54:15 +00:00
Rubidium 8ac4112aba Codechange: introduce enums for TrainSignalSide and RoadVehicleDrivingSide 2026-06-09 05:39:15 +02:00
Peter Nelson c9cf141813 Codechange: make Track a scoped enum and TrackBits an EnumBitSet (#15684)
Helper methods to convert Track to TrackBits are removed as they are no longer necessary.
2026-06-08 23:05:51 +01:00
Peter Nelson 7e2bcaf792 Codechange: avoid magic numbers and generic types when drawing autorail (#15689) 2026-06-08 22:22:15 +01:00
Peter Nelson 0ff5f81319 Codechange: make SigSegState a scoped enum (#15687) 2026-06-08 20:05:47 +01:00
translators 0eb9a47a96 Update: Translations from eints
english (au): 15 changes by krysclarke
czech: 69 changes by adamek0202
greek: 5 changes by gh658804
russian: 5 changes by Ln-Wolf
finnish: 5 changes by hpiirai
portuguese: 5 changes by jcteotonio
portuguese (brazilian): 5 changes by pasantoro
2026-06-08 06:08:41 +00:00
Peter Nelson 8d0a0b5e16 Fix #15606: undefined behaviour may cause buttons to be invisible (#15686)
Set widget aspect ratio based on unscaled sizes, as scaled sizes are no longer available.
2026-06-07 06:23:48 +00:00
translators ba582b88ed Update: Translations from eints 2026-06-07 06:02:31 +00:00
Cyprian Klimaszewski 9d233c441d Codechange: Use CornerIndexArray instead of C-style arrays. (#15685) 2026-06-06 21:55:11 +01:00
Peter Nelson fa02d7aecb Codechange: make LinkType a scoped enum (#15683) 2026-06-06 21:54:37 +01:00
Jonathan G Rennison 552ad919a8 Fix #15679: Train reversing when partially in a depot (#15680)
Defer UpdateStatusAfterSwap until after all swaps done.
Replace previous fix in #15662.
2026-06-06 18:53:28 +01:00
Peter Nelson b5ae563df1 Codechange: make IConsoleMode a scoped enum (#15682) 2026-06-06 18:52:31 +01:00
Peter Nelson 14be71cb5f Codechange: make SignalState a scoped enum 2026-06-06 18:52:10 +01:00
Peter Nelson 231d946624 Codechange: make SignalType a scoped enum 2026-06-06 18:52:10 +01:00
Peter Nelson e97e182630 Codechange: make SignalVariant a scoped enum 2026-06-06 18:52:10 +01:00
Peter Nelson ebb77e592c Codechange: use EnumIndexArray for signal sprite and string tables 2026-06-06 18:52:10 +01:00
Cyprian Klimaszewski 549f357a19 Codechange: Make Foundation a scoped enum. (#15676) 2026-06-06 18:51:53 +01:00
Peter Nelson e41d4a0243 Codefix: clean up confusion between Track and Trackdir (#15678) 2026-06-06 14:28:49 +01:00
Matt C 6bc486a578 Feature: Add default road and tram selection (#15585)
- Merged with the existing default rail type selection
2026-06-06 09:23:08 -04:00
Peter Nelson a85d10bf7c Codechange: use IsValidTrack to test for valid track in more places (#15677) 2026-06-06 11:33:46 +01:00
Rubidium a49dc81082 Codefix: make scoped-named enum actually scoped 2026-06-06 10:07:40 +02:00
translators a894ddf665 Update: Translations from eints
french: 24 changes by glx22
2026-06-06 05:48:56 +00:00
Peter Nelson a892d8e848 Codechange: rename and make StationVehicleType a scoped enum (#15674)
StatiionHadVehicleOfType renamed to StationVehicleTypes and turned into an EnumBitSet
2026-06-04 23:16:23 +01:00
Jonathan G Rennison 2ef1623c05 Fix: Train reversing when partially in a depot (#15662) 2026-06-03 18:48:43 -04:00
Cyprian Klimaszewski 4175aee782 Fix #14975: Show correct tile for tunnel error message (#15660) 2026-06-03 18:47:55 -04:00
Peter Nelson 37983cf2d0 Codechange: use TrackBitsToTrackdirBits instead of magic number (#15670) 2026-06-03 07:48:40 +01:00
Rubidium 4c2d4ec73e Codechange: rename InitializeRailGUI to InitializeSignalGui 2026-06-03 07:20:55 +02:00
Rubidium a8606613a4 Codechange: use single path for calling SetDefaultRailGui 2026-06-03 07:20:55 +02:00
Rubidium 55be58a31d Codefix: do not update just closed construction toolbar when changing company 2026-06-03 07:20:55 +02:00
Peter Nelson dbf56751b7 Codechange: simplify iteration of track bits (#15668) 2026-06-02 18:19:40 +00:00
Peter Nelson 3314f4955b Codechange: simplify test for building stations over existing rail (#15667) 2026-06-02 18:11:03 +00:00
Peter Nelson dcb3810840 Codechange: additional TrackdirIndexArray conversion 2026-06-02 18:58:10 +01:00
Peter Nelson ef48503276 Codechange: add helper method to get other Trackdir piece 2026-06-02 18:58:10 +01:00
Peter Nelson a51dd8e053 Codechange: make StoryPageButtonCursor a scoped enum 2026-06-01 22:08:46 +01:00
Peter Nelson 06af27d52e Codechange: make StoryPageElementType a scoped enum 2026-06-01 22:08:46 +01:00
Peter Nelson f9dfbd59a3 Codechange: make StoryPageButtonFlag(s) a scoped enum/EnumBitSet 2026-06-01 22:08:46 +01:00
Peter Nelson 40a29ebc67 Fix #15664, 568c7bb2: regression in aircraft movement (#15665) 2026-06-01 22:08:31 +01:00
Peter Nelson 2aa2b340eb Codefix: use correct type for array holding Trackdirs (#15658) 2026-06-01 19:30:31 +01:00
Peter Nelson 0e951f3528 Codechange: make TransparencyOption a scoped enum 2026-05-31 18:59:51 +01:00
Peter Nelson a144bf2f8b Codechange: make TransparencyOptions an EnumBitSet 2026-05-31 18:59:51 +01:00
Peter Nelson 28cd6a3d33 Codechange: make TrackStatus a struct instead of opaque uint32_t (#15653) 2026-05-31 18:09:26 +01:00
Peter Nelson a687f02e87 Add: implement custom waypoint layouts by callback 24 2026-05-31 14:55:24 +01:00
Peter Nelson 62669a24d3 Codechange: simplify GetPlatformInfo
Move axis flipping to the only caller that requires it.
2026-05-31 14:55:24 +01:00
Peter Nelson d6783335ca Codechange: make Direction a scoped enum 2026-05-31 13:11:53 +01:00
Peter Nelson f010c21f1a Codechange: make DiagDirection a scoped enum 2026-05-31 13:11:53 +01:00
Peter Nelson 356ca9c6d9 Codechange: use static_cast/to_underlying when converting Direction 2026-05-31 13:11:53 +01:00
Peter Nelson 0e0e8056a7 Codechange: use static_cast/to_underlying when converting DiagDirection 2026-05-31 13:11:53 +01:00
Peter Nelson 37f1a046e4 Codechange: use single array for vehicle subtile coord deltas (#15651) 2026-05-31 12:22:18 +01:00
Peter Nelson a7c078dcaf Codechange: use scoped enum for MoveToAction (#15621) 2026-05-31 08:16:51 +01:00
Peter Nelson ee0d9f662e Codechange: rework definition of ship and train tile entrance coordinates (#15650) 2026-05-31 08:16:26 +01:00