Commit Graph

32045 Commits

Author SHA1 Message Date
Jonathan G Rennison 7f08ead366 Codechange: [Script] Use std::optional for script list next iteration item (#14753)
Avoids false positive updates in Remove when iterating the final item
and leftover values being returned when IsEnd is true
2025-12-08 05:13:14 +05:00
Peter Nelson 676c4d6be6 Codechange: Replace drop down list's default bools with DropDownOptions. (#14837)
Improves maintainability and avoids positional ambiguity.
2025-12-08 05:11:30 +05:00
Peter Nelson 0303cc0d4f Fix #8062: (Try to) ensure enough room for profit in vehicle group window.
Width of group info panel previously relied entirely on the size of other widgets.
2025-12-08 05:11:27 +05:00
Peter Nelson b985a0a067 Codechange: Precalculate group column rects.
Simplifies drawing group list which no longer needs to calculate horizontal positions for each row.
2025-12-08 05:11:24 +05:00
Peter Nelson 10c35189fb Codechange: Extract functions to get group name and profit sprite.
Improves readability and allows long if-else conditions to be replaced with early returns.
2025-12-08 05:11:20 +05:00
translators 1d54a3a3b7 Update: Translations from eints
galician: 17 changes by pvillaverde
german: 47 changes by Wuzzy2
2025-12-08 05:11:20 +05:00
translators df34be4e69 Update: Translations from eints
korean: 17 changes by telk5093
hungarian: 18 changes by vargaviktor
portuguese: 9 changes by jcteotonio
2025-12-08 05:11:20 +05:00
Peter Nelson 39a7686caf Codefix: Add missing consts in group handling. (#14834) 2025-12-08 05:11:17 +05:00
translators 76807038e8 Update: Translations from eints
english (au): 9 changes by krysclarke
swedish: 17 changes by robert-i
english (us): 17 changes by 2TallTyler
greek: 9 changes by gh658804
russian: 9 changes by Ln-Wolf
finnish: 9 changes by hpiirai
portuguese (brazilian): 9 changes by pasantoro
polish: 9 changes by pAter-exe
2025-12-08 05:11:17 +05:00
Tyler Trahan 524af9a016 Fix 509cbed: Don't give up erroneously when building lakes (#14832) 2025-12-08 05:11:15 +05:00
TheDude-gh 3b795a0830 Add: [Script] ScriptTile::IsHouseTile 2025-12-08 05:11:03 +05:00
translators 3f6147f8fa Update: Translations from eints
english (au): 8 changes by krysclarke
greek: 8 changes by gh658804
russian: 8 changes by Ln-Wolf
finnish: 8 changes by hpiirai
portuguese: 8 changes by jcteotonio
portuguese (brazilian): 8 changes by pasantoro
polish: 10 changes by pAter-exe
2025-12-08 05:11:03 +05:00
Peter Nelson 9b04fe4447 Change: Make picker label/text colours consistent. (#14829)
Use {GOLD} instead of {ORANGE} in house picker window, to match other picker windows.
2025-12-08 05:11:00 +05:00
mmtunligit 71817008bf Codechange 7a0814c: Use SetDisplayedPlane instead of UpdateWidgetSize (#14823) 2025-12-08 05:10:36 +05:00
mmtunligit b84b0b4c89 Codefix: Add comments to SetViewport functions (#14822) 2025-12-08 05:10:32 +05:00
Tyler Trahan 0349b8fe99 Change: Ensure generated towns have enough room (#14803) 2025-12-08 05:10:26 +05:00
translators 0c56f1bc48 Update: Translations from eints
portuguese: 4 changes by jcteotonio
2025-12-08 05:10:26 +05:00
Cyprian Klimaszewski 00880a11ce Fix 98700eee43, Fix #14815: Properly handle picker window invalidation. (#14816) 2025-12-08 05:10:24 +05:00
Peter Nelson 056f0c94cf Add: [NewGRF] Allow badges to be excluded from badge name list. (#14818)
This allows badges to have names that can be filtered, but avoid cluttering the purchase text.
2025-12-08 05:08:49 +05:00
Rubidium 8a5f23043a Codechange: silence CodeQL complaints about long switches 2025-12-08 05:08:49 +05:00
Rubidium 8134f11852 Codefix: comparison of narrow type with wide type in loop condition 2025-12-08 05:08:44 +05:00
mmtunligit c34a433a07 Feature: Signs, waypoint and station names may be moved (#14744) 2025-12-08 05:06:53 +05:00
Richard Wheeler f5a6604482 Fix: Bridge deck sprites were not toyland aware (#14821) 2025-12-08 05:06:52 +05:00
Jonathan G Rennison cf0a554225 Fix #14800: Incorrect register processing in GetCustomStationRelocation (#14801)
ProcessRegisters must be called even if the sprite resolve result
is not valid.
A zero-length ResultSpriteGroup is valid because the output value
is an offset, not a sprite ID within the ResultSpriteGroup.
2025-12-08 05:06:49 +05:00
translators a28331222d Update: Translations from eints
portuguese: 11 changes by jcteotonio
2025-12-08 05:06:49 +05:00
Peter Nelson bdceca014d Codefix: Remove this-> from static call to CleaningPool. (#14817)
Don't call unnecessarily.
2025-12-08 05:06:45 +05:00
translators c41ba21a7b Update: Translations from eints
catalan: 4 changes by J0anJosep
portuguese: 6 changes by jcteotonio
2025-12-08 05:06:45 +05:00
Peter Nelson 0e44a837e4 Change: Add debug messages for errors encountered reading sounds. (#14810) 2025-12-08 05:06:43 +05:00
Peter Nelson 4d1fc8563d Fix ed67aedabf: Saved default houses had incorrect class and index information. (#14812)
Saved default houses would not appear properly in the 'Saved' tab after restarting the game.
2025-12-08 05:06:38 +05:00
Peter Nelson 53de4c4898 Codefix 0455627d16: Don't make temporary copies of order when converting old orders. (#14808) 2025-12-08 05:06:36 +05:00
Peter Nelson e7a706cf25 Fix #14794: Default railtype missing for some NewGRF rail vehicles. (#14795) 2025-12-08 05:05:07 +05:00
Peter Nelson c2f269dab2 Codechange: Use enum class for water-related enums. (#14804) 2025-12-08 05:04:12 +05:00
davidxn eb976cc523 Fix 741c431: Miscalculated cargo penalty for poor station rating (#14712) 2025-12-08 05:04:06 +05:00
kos a50a0db97d Fix #14755: Remove clicked type selection when not visible 2025-12-08 05:04:04 +05:00
Rubidium 29f2961b74 Codefix: shadowing variable, grouping loop increments 2025-12-08 05:04:01 +05:00
Jonathan G Rennison 2666159a47 Fix 98481ecc: Incorrect parsing of var 6x parameter in NewGRF debug window 2025-12-08 05:03:58 +05:00
Jonathan G Rennison 1cbec53e75 Fix 2b244441: [CMake] Regression tests failed if no previous crashes present
On CMake 3.x
2025-12-08 05:03:58 +05:00
Tyler Trahan 7a766d96b3 Feature: Rivers can end in wetlands if unable to reach sea (#14784) 2025-12-08 05:02:16 +05:00
translators 3bf0aed390 Update: Translations from eints
swedish: 4 changes by joeax910
portuguese: 1 change by jcteotonio
2025-12-08 05:02:16 +05:00
Peter Nelson 427ab4dd24 Codechange: Replace color with colour. 2025-12-08 05:00:32 +05:00
Peter Nelson f97ad14f0f Codechange: Replace favorite with favourite. 2025-12-08 05:00:28 +05:00
Peter Nelson 7f476c51c8 Codechange: Use enum class for Roadside. 2025-12-08 04:59:29 +05:00
Peter Nelson 33b77c6616 Codechange: Use enum class for RoadTileType. 2025-12-08 04:58:31 +05:00
Peter Nelson c2554e3149 Codechange: Use enum class for RailGroundType. 2025-12-08 04:57:37 +05:00
Peter Nelson 67b8fad855 Codechange: Use enum class for RailTileType 2025-12-08 04:56:43 +05:00
Peter Nelson 53597d2916 Codefix f98b90ac2e: Use to_underlying instead of direct static_cast. (#14790) 2025-12-08 04:56:36 +05:00
Tyler Trahan c997178c58 Fix: Two lighthouse spawn issues (#14785)
* Fix: Lighthouses need sea to generate, not rivers

* Fix: Don't spawn lighthouses close together
2025-12-08 04:56:34 +05:00
translators 1859c168ef Update: Translations from eints
portuguese: 17 changes by jcteotonio
portuguese (brazilian): 1 change by jcteotonio
maori (new zealand): 21 changes by Kyle-McDangersword
2025-12-08 04:56:34 +05:00
translators c66efc937f Update: Translations from eints
portuguese: 21 changes by jcteotonio
2025-12-08 04:56:34 +05:00
SamuXarick 871386b779 Codechange: HighScore sorting to use std::vector (#14779)
Replaces the fixed-size array for company sorting with a std::vector and updates sorting to use std::ranges::sort. This removes the need for manual count management.
2025-12-08 04:56:32 +05:00