translators
ca7332f24c
Update: Translations from eints
...
english (au): 1 change by krysclarke
greek: 1 change by gh658804
hungarian: 4 changes by vargaviktor
russian: 1 change by Ln-Wolf
finnish: 1 change by hpiirai
portuguese: 1 change by jcteotonio
portuguese (brazilian): 1 change by pasantoro
2025-12-08 18:43:55 +05:00
Peter Nelson
612b52799f
Change: Make groups window group list aware of interface scaling.
2025-12-08 18:43:52 +05:00
Peter Nelson
90d52a2deb
Codechange: Use Rects for group window drawing.
...
Simplifies handling of LTR/RTL coordinates.
2025-12-08 18:43:49 +05:00
Peter Nelson
d965b591e8
Change: Provide road and rail overlay sprites for bridge decks. ( #14557 )
...
This allows bridges designed primarily with NewGRF railtypes and roadtypes to be at least somewhat compatible with built-in rail and road.
2025-12-08 18:43:47 +05:00
Rubidium
e7ee830c0a
Codechange: make all Providers fully const (Font/Screenshot/Sound)
2025-12-08 17:36:33 +05:00
Peter Nelson
4683148890
Fix 9cdf740097: Don't make copy of format providers when making a screenshot. ( #14681 )
...
While here, use projection instead of lambda to select provider.
2025-12-08 17:36:31 +05:00
Peter Nelson
9dbdc00439
Add: Include build cost in rail/road dropdowns. ( #14599 )
2025-12-08 17:36:24 +05:00
translators
cf250524de
Update: Translations from eints
...
english (us): 3 changes by 2TallTyler
galician: 9 changes by pvillaverde
2025-12-08 17:36:23 +05:00
Su
6cfc7a85d5
Change: replace the "(City)" identifier in the town directory with the city icon ( #14634 )
2025-12-08 17:36:22 +05:00
Peter Nelson
60c8b2cf8c
Codechange: Initialise rail/road types with range-for.
...
Replace double loop with single loop that performs both parts together.
2025-12-08 17:36:19 +05:00
Peter Nelson
be1d9b8349
Codechange: Use std algorithm when allocating rail/road type.
...
Use `std::ranges::find()` instead of a `for`-loop to allocate rail and road types.
2025-12-08 17:36:16 +05:00
Peter Nelson
45a7f16f4d
Codechange: Make GetRail/RoadTypeInfoIndex() a member method.
...
This follows a similar pattern used for cargoes, houses and objects.
Also fixes incorrect documentation of GetRoadTypeInfoIndex().
2025-12-08 17:35:10 +05:00
Peter Nelson
dd64d510b8
Codechange: Cleanup unnecessary includes of spritecache.h ( #14678 )
2025-12-08 17:34:58 +05:00
Peter Nelson
aaa337592c
Codechange: Replace Rect CentreTo with CentreToHeight. ( #14675 )
...
So far all callers only need to centre vertically, so not having to provide the existing width simplifies calls.
2025-12-08 17:33:23 +05:00
Peter Nelson
fcd3d29be7
Change: Support interface scaling in network client list buttons.
2025-12-08 17:33:19 +05:00
translators
ed856a8eb9
Update: Translations from eints
...
english (au): 3 changes by krysclarke
swedish: 3 changes by robert-i
korean: 3 changes by telk5093
greek: 3 changes by gh658804
russian: 3 changes by Ln-Wolf
finnish: 3 changes by hpiirai
catalan: 3 changes by J0anJosep
portuguese: 3 changes by jcteotonio
portuguese (brazilian): 3 changes by pasantoro
polish: 3 changes by pAter-exe
2025-12-08 17:24:54 +05:00
Peter Nelson
32b92a6594
Codechange: Use Rect WithX/WithY in some places.
2025-12-08 16:50:21 +05:00
Peter Nelson
3b5168cb92
Codechange: Add WithX/WithY methods to Rect.
...
This simplifies creating a new Rect with specific horizontal or vertical coordinates.
2025-12-08 16:48:30 +05:00
Peter Nelson
b20ab2916a
Change: Prefer normal/medium weight font in FontConfig fallback detection. ( #14672 )
...
This way it behaves similar to Windows.
2025-12-08 16:48:29 +05:00
Rubidium
892c02dc86
Codefix: shadowing of variables
2025-12-08 16:48:23 +05:00
Jonathan G Rennison
59880a116c
Fix: Industry accept/produce when not contiguous range from 0 ( #14555 )
2025-12-08 16:48:18 +05:00
Jonathan G Rennison
a3f0cad534
Fix #14604 : Clearing tiles to build objects did not update town ratings ( #14616 )
2025-12-08 16:48:16 +05:00
Peter Nelson
64bcf034bd
Codechange: FlatSet's contains() should be const. ( #14665 )
...
This function does not modify contents, so should be marked const.
2025-12-08 16:46:48 +05:00
Peter Nelson
5611d31256
Codechange: Rename TrackFollowers to follower. ( #14664 )
...
Replaces use of codestyle breaking `F` in places.
2025-12-08 16:46:44 +05:00
Peter Nelson
9202d8e0b5
Codefix 18e28077cc: Local variable icon shadowed member variable icon. ( #14668 )
...
Rename rects used in league table to avoid name shadowing. Now uses the same naming as in ScriptLeagueWindow.
2025-12-08 16:46:42 +05:00
Rubidium
1baa84eccc
Fix #14549 : changing interface scale could underflow map zoom
2025-12-08 16:44:45 +05:00
translators
e0ac2095eb
Update: Translations from eints
2025-12-08 16:44:45 +05:00
Peter Nelson
0b9ee13b5c
Fix: League Table layout broken with RTL languages. ( #14667 )
2025-12-08 16:44:43 +05:00
Peter Nelson
e1fe2e19e9
Change: Record and show multiple errors for each NewGRF. ( #14658 )
2025-12-08 16:43:11 +05:00
Tyler Trahan
25ad0317fb
Feature: Draw infinite water when all borders are water ( #13289 )
2025-12-08 16:41:31 +05:00
Kuhnovic
e6a05f57e0
Codechange: Set YAPF startup nodes directly. ( #14663 )
2025-12-08 16:41:27 +05:00
Kuhnovic
c367ad6376
Codechange: Simplified logic of ship leaving a depot. ( #14661 )
2025-12-08 16:41:24 +05:00
Kuhnovic
839e5fffb2
Codechange: Moved PruneIntermediateNodeBranch to rail pathfinder. ( #14662 )
2025-12-08 16:41:20 +05:00
Kuhnovic
554913986e
Fix bff8501: Gcc 15 warns about duplicate type. ( #14660 )
2025-12-08 16:41:18 +05:00
Peter Nelson
2af7a99984
Fix #14607 : Bridge-over-station discrepancy depending on build order. ( #14608 )
...
When building a custom station, the callback-derived tile layout is ignored during the bridge height test. This caused a discrepancy between building a station under a bridge vs building a bridge over the same station.
Test the station tile layout callback during the bridge height test.
2025-12-08 16:41:12 +05:00
Peter Nelson
e2e01eabb5
Fix 3ac1a2f1e4: Game crash due to invalid vehicle type information. ( #14628 )
...
Use std::variant instead of union for vehicle info.
RailVehicleInfo is now non-POD so using in a union causes undefined behaviour.
2025-12-08 16:39:52 +05:00
Kuhnovic
22d9c0b2d3
Codechange: Simplified structure of yapf_ship_regions. ( #14640 )
2025-12-08 16:39:49 +05:00
translators
8797689c10
Update: Translations from eints
...
hungarian: 5 changes by vargaviktor
2025-12-08 16:39:49 +05:00
Peter Nelson
cd639a774d
Fix d85f4b3ebf: Incorrect row height in network server list. ( #14653 )
2025-12-08 16:39:46 +05:00
Peter Nelson
f5ec253a8e
Codechange: Make TownRatingCheckType an enum class. ( #14652 )
2025-12-08 16:39:02 +05:00
Peter Nelson
7baa01b394
Codechange: Use EnumBitSet for TownFlags. ( #14651 )
2025-12-08 16:39:00 +05:00
Peter Nelson
29c5157e36
Codefix: Incorrect naming and location of widget names for build docks window. ( #14650 )
2025-12-08 16:33:54 +05:00
translators
9f7623f137
Update: Translations from eints
...
chinese (simplified): 4 changes by WenSimEHRP
catalan: 5 changes by J0anJosep
2025-12-08 16:33:54 +05:00
Peter Nelson
1824e42246
Codechange: Add constant for INVALID_WIDGET. ( #14649 )
...
Replaces direct use of -1, making it easier to find.
2025-12-08 16:33:52 +05:00
Peter Nelson
18bf0e2b58
Codechange: Call shorter variant of DrawFrameRect and GfxFillRect. ( #14647 )
...
Pass rect instead of breaking it up when possible.
2025-12-08 16:31:39 +05:00
Peter Nelson
a660bedc67
Codechange: Deduplicate DrawButtonDropdown. ( #14646 )
...
Use Rect methods to position components.
2025-12-08 15:59:56 +05:00
Peter Nelson
8cdc054ef1
Codechange: Don't use Point for non-2D coordinate. ( #14645 )
...
`HandleScrollbarHittest` returns min and max coordinates, not x and y.
Also avoid referring to the min and max coordinates as top and bottom, as these functions are used for both vertical and horizontal scrollbars.
2025-12-08 15:59:54 +05:00
Peter Nelson
43eacceea7
Codechange: Move settings entry size global variables. ( #14644 )
...
_setting_circle_size and (the incorrectly named) SETTING_HEIGHT variables are now static members of BaseSettingEntry.
Neither of these are constants, so they no longer use constant naming style.
2025-12-08 15:59:50 +05:00
Peter Nelson
48cf1cabbe
Fix 6e90b828c6: Off-by-one in Rect::CentreTo. ( #14643 )
...
* Rect right/bottom are inclusive so -1 must be taken from width/height.
* Misnamed variable, `new_right` is actually `new_top`.
2025-12-08 15:58:14 +05:00
Peter Nelson
83bd4b6d0f
Fix 8c58fb1efd: Doubled beep sounds when clicking toolbar buttons.
...
* ShowDropDownList() now issues a beep, so individual toolbar buttons no longer need to do it.
* HandleButtonClick() may be called twice for some buttons, as it is called by automatically for PUSH buttons.
This caused some beeps to sound louder than others.
2025-12-08 15:58:10 +05:00