Commit Graph

32002 Commits

Author SHA1 Message Date
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
Muxy Du Goulp
13f030ddf8 Fix #14777: authorized_key: Correctly target key type for add/remove
The logic in ConNetworkAuthorizedKey for the `authorized_key` command was inverted.
The check `if (StrEqualsIgnoreCase(type, name)) continue;` caused the action (add/remove) to be incorrectly executed on the first key type encountered that *did not* match the requested type, rather than the intended one. This resulted in keys specified for 'admin' being added to 'rcon', for example.

This commit inverts the condition to ensure the action is performed only when the requested type matches the iterated key name.
2025-12-08 04:56:27 +05:00
Peter Nelson
8f2fd4f45f Codechange: Use enum class for command-related enums. (#14775) 2025-12-08 04:54:44 +05:00
Loïc Guilloux
e7a89d8c13 Codechange: Detect crashes during regression (#14774) 2025-12-08 04:54:44 +05:00
translators
2590cf28c9 Update: Translations from eints
polish: 4 changes by pAter-exe
2025-12-08 04:54:44 +05:00
translators
3ff6cd2fa4 Update: Translations from eints
norwegian (bokmal): 4 changes by eriksorngard
2025-12-08 04:54:44 +05:00
mmtunligit
4c4e7baf88 Change: Clamp terraform toolbar to main toolbar (#14725) 2025-12-08 04:53:00 +05:00
Rito12
00c6581e6b Fix #14701: Company colour remap for sprites in badge filter dropdowns. (#14732) 2025-12-08 04:52:51 +05:00
translators
1fada6ba66 Update: Translations from eints
korean: 4 changes by telk5093
2025-12-08 04:52:51 +05:00
Rito12
8d2ed51e2d Codefix 394adb6: Make newgrf_badge_gui.cpp file docs compatible with the file name. (#14770) 2025-12-08 04:52:43 +05:00
translators
7b415bba48 Update: Translations from eints
galician: 17 changes by pvillaverde
polish: 4 changes by Rito13
2025-12-08 04:52:43 +05:00
translators
6ff356a526 Update: Translations from eints
english (au): 4 changes by krysclarke
english (us): 4 changes by 2TallTyler
greek: 4 changes by gh658804
hungarian: 4 changes by vargaviktor
russian: 4 changes by Ln-Wolf
finnish: 4 changes by hpiirai
portuguese: 4 changes by jcteotonio
portuguese (brazilian): 4 changes by pasantoro
2025-12-08 04:52:43 +05:00
Peter Nelson
71b69dfa93 Fix 394adb654e: Incorrect spacing for badges in dropdown lists. (#14768) 2025-12-08 04:52:40 +05:00
Peter Nelson
e13e912659 Fix c2d4098afa: Unconfigured badge classes should be visible in column 0 by default. (#14766) 2025-12-08 04:52:35 +05:00
translators
493507592a Update: Translations from eints
luxembourgish: 54 changes by phreeze83
2025-12-08 04:52:35 +05:00
Peter Nelson
7ec21f8d84 Change: Use proper tooltip strings for freeform edge toggles. (#14765) 2025-12-08 04:51:31 +05:00
Loïc Guilloux
0d7c03f8c5 Codefix 6d495d1: [Actions] vcpkg caching for codeql requires some permissions (#14767) 2025-12-08 04:51:31 +05:00
Rito12
36082ccf1c Codefix 8f14894: Correct the comment for GetClassBadge function. (#14759) 2025-12-08 04:51:29 +05:00
Peter Nelson
efdfb07bb8 Fix #14763: Crash if NewGRF currency separator is not valid. (#14764)
Ensure separator is a valid string.
2025-12-08 04:51:26 +05:00
translators
83035901f2 Update: Translations from eints
luxembourgish: 54 changes by phreeze83
2025-12-08 04:51:26 +05:00
translators
f311bf9383 Update: Translations from eints
korean: 11 changes by telk5093
french: 14 changes by glx22
2025-12-08 04:51:26 +05:00
Jonathan G Rennison
b79bc7ed0b Fix: BaseBitSet bit iteration for values which don't fit in 32 bits (#14757) 2025-12-08 04:49:27 +05:00
Peter Nelson
8c6e5ec248 Codechange: Use std-find instead of for-loops in strgen. (#14754) 2025-12-08 04:49:22 +05:00
translators
d01b53f0fd Update: Translations from eints
hungarian: 12 changes by vargaviktor
2025-12-08 04:49:22 +05:00
Peter Nelson
6fd1f676d3 Fix fd32d1447e: Test for empty shares became inverted. (#14751) 2025-12-08 04:49:19 +05:00
Rito12
b19380969c Codechange: Use helper function for company recolour offset (#14740) 2025-12-08 04:48:00 +05:00
Peter Nelson
a588ba960d Codefix: Clear m8 when making tiles.
m8 should be cleared when tiles do not use it.
2025-12-08 04:46:58 +05:00
Peter Nelson
bb4ccb40b3 Codefix: Clear m6 more thoroughly when making tiles.
m6 bits 6-7 were previously used to be for bridge above state, but should now be cleared.
2025-12-08 04:45:56 +05:00
Peter Nelson
8ea007df21 Codechange: Use std::initializer_list for NWidgetPart data. (#14749)
Avoids using C/C++ arrays.
2025-12-08 04:45:34 +05:00
Peter Nelson
c80d21a41a Codechange: Use enum/EnumBitSet for livery in use flags. (#14746)
Replaces magic numbers.
2025-12-08 04:44:08 +05:00
translators
de0fed2702 Update: Translations from eints
dutch: 11 changes by Afoklala
2025-12-08 04:44:08 +05:00
Rito12
7a47f2a945 Remove: Rail type cost from replace vehicle window. (#14748) 2025-12-08 04:44:01 +05:00
SamuXarick
32fe53ff56 Codefix: Add missing 'this->' in ScriptList (#14747) 2025-12-08 04:43:59 +05:00
Peter Nelson
3d475b964e Codechange: Make driver probe behave the same as loading by name. (#14736)
Inconsistent initialisation order when setting active driver and starting the driver.
2025-12-08 04:43:57 +05:00
SamuXarick
bbb8926a63 Doc 313c6c4: [Script] GetAllRailTypes and GetRailType are from ScriptEngine (#14745) 2025-12-08 04:43:57 +05:00
SamuXarick
96891c97e2 Add: [Script] Auto-convert ObjectType bool to integer when setting values for items in lists via [] (#14308) 2025-12-08 04:43:54 +05:00
translators
43f37263e0 Update: Translations from eints
english (us): 11 changes by 2TallTyler
2025-12-08 04:43:54 +05:00
Peter Nelson
caa308070c Codechange: Simplify YAPF debug helpers a little. (#14741)
Remove template magic to get C-array size.
2025-12-08 04:43:48 +05:00
translators
410abf5ade Update: Translations from eints
chinese (traditional): 4 changes by KogentaSan
chinese (simplified): 11 changes by WenSimEHRP
catalan: 11 changes by J0anJosep
2025-12-08 04:43:48 +05:00
Tyler Trahan
ffefae5d28 Fix #14737: Don't scale custom town and industry counts by land area (#14738) 2025-12-08 04:43:42 +05:00
translators
7229f830f3 Update: Translations from eints
norwegian (bokmal): 12 changes by eriksorngard
portuguese: 1 change by jcteotonio
polish: 2 changes by pAter-exe, 2 changes by Rito13
2025-12-08 04:43:42 +05:00
translators
ef7897498d Update: Translations from eints
english (au): 11 changes by krysclarke
swedish: 11 changes by robert-i
chinese (traditional): 11 changes by KogentaSan
greek: 11 changes by gh658804
russian: 13 changes by Ln-Wolf
finnish: 15 changes by hpiirai
portuguese: 44 changes by jcteotonio
portuguese (brazilian): 11 changes by pasantoro, 1 change by jcteotonio
polish: 10 changes by Rito13, 1 change by pAter-exe
2025-12-08 04:43:42 +05:00
translators
34d60862c1 Update: Translations from eints
galician: 1 change by pvillaverde
2025-12-08 04:43:42 +05:00
Peter Nelson
ede3e19eb4 Change: Scale towns/industries by amount of land tiles. (#10063) 2025-12-08 04:41:52 +05:00