Commit Graph

25673 Commits

Author SHA1 Message Date
Peter Nelson
5d0c798a82 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 21:31:53 +05:00
translators
5d516c96c3 Update: Translations from eints
galician: 17 changes by pvillaverde
german: 47 changes by Wuzzy2
2025-12-08 21:31:53 +05:00
translators
04ca0ab609 Update: Translations from eints
korean: 17 changes by telk5093
hungarian: 18 changes by vargaviktor
portuguese: 9 changes by jcteotonio
2025-12-08 21:31:53 +05:00
Peter Nelson
2d7a22f7f3 Codefix: Add missing consts in group handling. (#14834) 2025-12-08 21:31:50 +05:00
translators
d0ba23dd15 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 21:31:50 +05:00
Tyler Trahan
d4197bc731 Fix 509cbed: Don't give up erroneously when building lakes (#14832) 2025-12-08 21:31:48 +05:00
TheDude-gh
429b6820a7 Add: [Script] ScriptTile::IsHouseTile 2025-12-08 21:31:38 +05:00
translators
5ce40e19a5 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 21:31:38 +05:00
Peter Nelson
e8134eb0e5 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 21:31:35 +05:00
mmtunligit
e07dda506f Codechange 7a0814c: Use SetDisplayedPlane instead of UpdateWidgetSize (#14823) 2025-12-08 21:31:15 +05:00
mmtunligit
b625ff5f35 Codefix: Add comments to SetViewport functions (#14822) 2025-12-08 21:31:11 +05:00
Tyler Trahan
a67fec79e0 Change: Ensure generated towns have enough room (#14803) 2025-12-08 21:31:06 +05:00
translators
71af0d325d Update: Translations from eints
portuguese: 4 changes by jcteotonio
2025-12-08 21:31:06 +05:00
Cyprian Klimaszewski
de2a34a1b6 Fix 98700eee43, Fix #14815: Properly handle picker window invalidation. (#14816) 2025-12-08 21:31:04 +05:00
Peter Nelson
d7fb936ce8 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 21:29:42 +05:00
Rubidium
e1a27ac403 Codefix: comparison of narrow type with wide type in loop condition 2025-12-08 21:29:36 +05:00
Richard Wheeler
18649c800b Fix: Bridge deck sprites were not toyland aware (#14821) 2025-12-08 21:29:33 +05:00
Jonathan G Rennison
d39f7d2458 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 21:11:17 +05:00
translators
c31e5830e7 Update: Translations from eints
portuguese: 11 changes by jcteotonio
2025-12-08 21:11:17 +05:00
Peter Nelson
4e595579fe Codefix: Remove this-> from static call to CleaningPool. (#14817)
Don't call unnecessarily.
2025-12-08 21:11:13 +05:00
translators
d1b0b38a4a Update: Translations from eints
catalan: 4 changes by J0anJosep
portuguese: 6 changes by jcteotonio
2025-12-08 21:11:13 +05:00
Peter Nelson
23137e9f0c Change: Add debug messages for errors encountered reading sounds. (#14810) 2025-12-08 21:11:11 +05:00
Peter Nelson
38849484ca 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 21:11:07 +05:00
Peter Nelson
0b5cdbdfbe Codefix 0455627d16: Don't make temporary copies of order when converting old orders. (#14808) 2025-12-08 21:11:05 +05:00
Peter Nelson
d4332051bd Fix #14794: Default railtype missing for some NewGRF rail vehicles. (#14795) 2025-12-08 21:09:45 +05:00
Peter Nelson
f0d0bf4447 Codechange: Use enum class for water-related enums. (#14804) 2025-12-08 21:09:43 +05:00
davidxn
05284ba193 Fix 741c431: Miscalculated cargo penalty for poor station rating (#14712) 2025-12-08 20:46:54 +05:00
kos
dad1320346 Fix #14755: Remove clicked type selection when not visible 2025-12-08 20:46:52 +05:00
Rubidium
f515b2cea4 Codefix: shadowing variable, grouping loop increments 2025-12-08 20:46:49 +05:00
Jonathan G Rennison
08c27d9b5d Fix 98481ecc: Incorrect parsing of var 6x parameter in NewGRF debug window 2025-12-08 20:46:46 +05:00
Tyler Trahan
40b758cd95 Feature: Rivers can end in wetlands if unable to reach sea (#14784) 2025-12-08 20:44:56 +05:00
translators
b4e8fea1e3 Update: Translations from eints
swedish: 4 changes by joeax910
portuguese: 1 change by jcteotonio
2025-12-08 20:44:55 +05:00
Peter Nelson
90001dabfa Codechange: Replace color with colour. 2025-12-08 20:43:11 +05:00
Peter Nelson
a1bc41d67d Codechange: Replace favorite with favourite. 2025-12-08 20:43:07 +05:00
Peter Nelson
0112fa8ce3 Codechange: Use enum class for Roadside. 2025-12-08 20:42:04 +05:00
Peter Nelson
fab1c5f7e9 Codechange: Use enum class for RoadTileType. 2025-12-08 20:42:01 +05:00
Peter Nelson
99fafcb960 Codechange: Use enum class for RailGroundType. 2025-12-08 20:35:26 +05:00
Peter Nelson
6f6c3834dc Codechange: Use enum class for RailTileType 2025-12-08 20:35:23 +05:00
Peter Nelson
b9fea4749c Codefix f98b90ac2e: Use to_underlying instead of direct static_cast. (#14790) 2025-12-08 20:31:02 +05:00
Tyler Trahan
97e4ed873f Fix: Two lighthouse spawn issues (#14785)
* Fix: Lighthouses need sea to generate, not rivers

* Fix: Don't spawn lighthouses close together
2025-12-08 20:30:59 +05:00
translators
5e60a5e5ba 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 20:30:59 +05:00
translators
367eb42e76 Update: Translations from eints
portuguese: 21 changes by jcteotonio
2025-12-08 20:30:59 +05:00
SamuXarick
f161a3eb65 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 20:30:57 +05:00
Muxy Du Goulp
e8a9b867dd 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 20:30:53 +05:00
Peter Nelson
ca744dd7f9 Codechange: Use enum class for command-related enums. (#14775) 2025-12-08 20:29:01 +05:00
translators
659c60f807 Update: Translations from eints
polish: 4 changes by pAter-exe
2025-12-08 20:29:00 +05:00
translators
5376956926 Update: Translations from eints
norwegian (bokmal): 4 changes by eriksorngard
2025-12-08 20:29:00 +05:00
mmtunligit
7da5a1d4e5 Change: Clamp terraform toolbar to main toolbar (#14725) 2025-12-08 20:27:11 +05:00
Rito12
f6bb898df2 Fix #14701: Company colour remap for sprites in badge filter dropdowns. (#14732) 2025-12-08 20:27:03 +05:00
translators
7575c0beb0 Update: Translations from eints
korean: 4 changes by telk5093
2025-12-08 20:27:03 +05:00