Commit Graph

32839 Commits

Author SHA1 Message Date
Rubidium ebc61380f6 Codechange: make PriceCategory a scoped enum 2026-05-31 07:22:30 +02:00
Rubidium e4b6666fef Codechange: make VisualEffectSpawnModel a scoped enum 2026-05-31 07:22:21 +02:00
Rubidium 8bac7bd519 Codechange: make SwitchMode a scoped enum 2026-05-31 07:22:11 +02:00
Peter Nelson 0d2aed3b87 Codechange: make FloodingBehaviour a scoped enum (#15632) 2026-05-31 06:07:05 +01:00
Rubidium 2ff631caa2 Codechange: make GameMode a scoped enum 2026-05-30 23:20:20 +02:00
Peter Nelson 4b44d0a376 Codechange: use AxisToDiagDirs() in more places (#15646) 2026-05-30 18:24:04 +00:00
Peter Nelson 89201f80fb Codechange: use InclinedSlope() when drawing catenary (#15645)
Bit-shifted `Corner` is also a `Slope`, so use existing function instead of a lookup table.
2026-05-30 18:39:27 +01:00
Peter Nelson e97a4e1b06 Codechange: improve readability of logic of trains for depot enter/exit
Replaces magical hexadecimal values, masking and shifts with various Coord2Ds.
2026-05-30 17:24:04 +01:00
Peter Nelson af6868198e Codechange: add spaceship operator for Coord2D and Coord3D 2026-05-30 17:24:04 +01:00
Rubidium 9fabd511b6 Codefix: incidating isn't English 2026-05-30 14:26:01 +02:00
Peter Nelson bc8b16a99b Codechange: use EnumIndexArray for Track and Trackdir indexed arrays 2026-05-30 07:39:21 +01:00
Peter Nelson 81bdc44d1a Codechange: use EnumIndexArray for Direction and DiagDirection indexed arrays 2026-05-30 07:39:21 +01:00
Cyprian Klimaszewski d68553bbd6 Codefix: halftile_test is an int but used as a Slope. 2026-05-29 16:11:10 +02:00
Peter Nelson 1d8d07e561 Codechange: make DiagDirDiff a scoped enum (#15635) 2026-05-28 16:56:52 +00:00
Peter Nelson 568c7bb259 Codechange: make DirDiff a scoped enum 2026-05-28 17:10:31 +01:00
Peter Nelson e6cf643103 Codechange: add function to limit direction difference 2026-05-28 17:10:31 +01:00
Peter Nelson f7d1108934 Cleanup: remove unused RotateRoadBits() function (#15633) 2026-05-28 08:05:16 +00:00
translators da0a244db6 Update: Translations from eints
chinese (traditional): 6 changes by KogentaSan
hungarian: 1 change by vargaviktor
2026-05-28 05:59:48 +00:00
Peter Nelson ae1ca76596 Codechange: use Direction helpers instead of direct masking (#15631) 2026-05-27 20:07:24 +01:00
Cyprian Klimaszewski 89f730bfb7 Codechange: replace TrackdirBits C-style casts. (#15628) 2026-05-27 07:50:12 +01:00
Peter Nelson c74431e734 Codechange: make Axis a scoped enum 2026-05-27 07:49:39 +01:00
Peter Nelson c0cb8b74e1 Codechange: use static_cast/to_underlying when explicitly converting Axis 2026-05-27 07:49:39 +01:00
Peter Nelson 807436b3ea Codechange: use EnumIndexArray for axis indexed arrays 2026-05-27 07:49:39 +01:00
translators a5ec6823c6 Update: Translations from eints
luxembourgish: 10 changes by phreeze83
2026-05-27 05:59:46 +00:00
Peter Nelson 46ee856057 Fix: pylons and no-wires flags were ignored for waypoint tiles (#15619) 2026-05-26 21:57:43 +01:00
Jonathan G Rennison 33874571a5 Fix: Scenario editor random industry generation (#15626) 2026-05-26 20:01:11 +01:00
Cyprian Klimaszewski d490243c7f Codechange: Use ExtractCommandCost instead of std::get<0>. (#15542) 2026-05-26 20:00:29 +01:00
Peter Nelson 2fcb7f2b02 Codechange: use existing helpers to convert to/from Axis (#15629) 2026-05-26 19:59:52 +01:00
Peter Nelson c4b642668d Codechange: use EnumIndexArray for RoadStopType-indexed arrays 2026-05-26 17:12:50 +01:00
Peter Nelson 233c616425 Codechange: use EnumIndexArray for NewsType-indexed array 2026-05-26 17:12:50 +01:00
Peter Nelson 06b0b59c92 Codechange: use EnumIndexArray for ContentInfo::State-indexed arrays 2026-05-26 17:12:50 +01:00
Peter Nelson 6c39def287 Codechange: use EnumIndexArray for ZoomLevel-indexed arrays 2026-05-26 17:12:50 +01:00
Peter Nelson fa1a5b998e Codechange: use EnumIndexArray for ContentType-indexed arrays 2026-05-26 17:12:50 +01:00
Peter Nelson 1860355246 Codechange: use EnumIndexArray for Driver::Type-indexed arrays 2026-05-26 17:12:50 +01:00
Peter Nelson fa387fe129 Codechange: use EnumIndexArray for ClearGround-indexed arrays 2026-05-26 17:12:50 +01:00
Peter Nelson 4d809f4b43 Codechange: use EnumIndexArray for GrfSpecFeature-indexed arrays 2026-05-26 17:12:50 +01:00
Peter Nelson f47af07945 Codechange: use EnumIndexArray for StationType-indexed arrays 2026-05-26 17:12:50 +01:00
Peter Nelson fce33c5015 Codechange: make WarningLevel a scoped enum (#15622) 2026-05-26 17:12:21 +01:00
translators 957184ae90 Update: Translations from eints
swedish: 7 changes by joeax910
maori (new zealand): 6 changes by Kyle-McDangersword
2026-05-26 05:52:48 +00:00
Peter Nelson 39d4fe24a0 Codechange: treat station gui axis as an axis (#15627) 2026-05-25 07:21:15 +01:00
Peter Nelson 4519b5db69 Codechange: make ConsoleHookResult a scoped enum (#15623) 2026-05-25 07:19:59 +01:00
translators bb2c3aed71 Update: Translations from eints
norwegian (bokmal): 3 changes by eriksorngard
2026-05-25 06:01:33 +00:00
Peter Nelson 507b50223c Codechange: make WagonOverride a scoped enum (#15625) 2026-05-24 22:58:34 +01:00
translators 052a6f15b4 Update: Translations from eints
korean: 5 changes by telk5093
2026-05-24 05:50:21 +00:00
translators 68a03db17f Update: Translations from eints
english (us): 3 changes by 2TallTyler
esperanto: 3 changes by slashdevslashurandom
portuguese (brazilian): 1 change by jcteotonio
polish: 1 change by Rito13
2026-05-23 05:45:43 +00:00
Jonathan G Rennison f2aeed9cb9 Cleanup: Remove unused GameOptionsWindowNumber::GameSettings window number (#15617)
Remove associated redundant SetWindowDirty calls
2026-05-23 02:18:30 +02:00
translators b13cf794bc Update: Translations from eints
english (au): 3 changes by krysclarke
greek: 3 changes by gh658804
russian: 3 changes by Ln-Wolf
finnish: 3 changes by hpiirai
portuguese: 3 changes by jcteotonio
portuguese (brazilian): 82 changes by pasantoro
2026-05-22 05:52:28 +00:00
Peter Nelson 01ae236eec Codechange: replace saveload C-style casts with static_cast<> (#15583) 2026-05-21 21:33:26 +01:00
Peter Nelson dbc0aa4cdb Codechange: make ClientStatus and ServerStatus scoped enums (#15578) 2026-05-21 21:32:42 +01:00
Peter Nelson b2e01a9afa Codechange: remove code to save/load deques (#15577)
Deques are no longer involved in save/load so this was redundant code.
2026-05-21 21:31:16 +01:00