translators
e8be933ee6
Update: Translations from eints
2024-06-24 04:42:12 +00:00
Peter Nelson
e802c1a97f
Add: Show count of towns and industries in their directory window captions. ( #12800 )
...
These windows now show "(<visible> of <total>)" in the caption.
2024-06-23 17:55:37 +01:00
Peter Nelson
7116f143d5
Codefix: Hole in vehicle list window if dimensions are not as expected. ( #12803 )
...
The layouts for these windows assume that push buttons and dropdowns are the same height.
2024-06-23 08:14:06 +01:00
translators
97e9442d5e
Update: Translations from eints
...
norwegian (bokmal): 32 changes by eriksorngard
galician: 2 changes by pvillaverde
2024-06-23 04:42:04 +00:00
Peter Nelson
91fd082e93
Fix: Apply widget's internal padding to scrollbar capacity/position. ( #12801 )
...
For non-WWT_MATRIX widgets, scrollbars need to take account of the internal padding used for the widget.
This is not normally noticeable as framerect padding is only 2 extra pixels
2024-06-22 15:42:13 +00:00
Björn Wärmedal
e0bcb54a4b
Change: Allow bribing local authority when other company has exclusive rights ( #12763 )
2024-06-22 07:51:03 -04:00
translators
49d47b3b74
Update: Translations from eints
...
greek: 2 changes by gh658804
dutch: 2 changes by Afoklala
lithuanian: 4 changes by khamper
french: 9 changes by Lishouuu
2024-06-22 04:40:41 +00:00
translators
64781df29f
Update: Translations from eints
...
english (us): 2 changes by 2TallTyler
2024-06-21 04:43:18 +00:00
translators
e3e215b249
Update: Translations from eints
...
german: 3 changes by Wuzzy2
portuguese (brazilian): 4 changes by pasantoro
2024-06-20 04:41:06 +00:00
translators
2dab9ac7a5
Update: Translations from eints
...
swedish: 4 changes by joeax910
catalan: 2 changes by J0anJosep
2024-06-19 04:42:11 +00:00
Peter Nelson
b56775f576
Codechange: Avoid making copies of intermediate layout runs. ( #12796 )
...
The vector of runs is not used after it is passed to the ParagraphLayout class, so pass with std::move to avoid an unnecessary copy.
2024-06-17 22:58:52 +01:00
Peter Nelson
731c56d116
Codefix: Add missing const
inside script functions. ( #12794 )
...
Scripts do not modify items directly, marking them const enforces this.
2024-06-17 07:19:56 +01:00
translators
7db70f9c3f
Update: Translations from eints
...
english (au): 2 changes by krysclarke
norwegian (bokmal): 6 changes by eriksorngard
korean: 3 changes by telk5093
russian: 2 changes by Ln-Wolf
finnish: 3 changes by hpiirai
portuguese: 2 changes by azulcosta
portuguese (brazilian): 2 changes by pasantoro
polish: 5 changes by pAter-exe
2024-06-17 04:43:34 +00:00
Tyler Trahan
e3156546fa
Codefix: Don't claim to allocate new waypoint when just checking ( #12792 )
2024-06-16 16:07:57 -04:00
Peter Nelson
2f54904bab
Codefix: Incorrect indentation of NWidgetParts in load/save windows. ( #12791 )
...
Fix to use the "standard" layout of 1 tab for nesting widgets and 2 tabs for attributes that wrap on to the next line.
2024-06-16 18:54:19 +01:00
ladysadie
2bc3cc5b67
Codechange: Compiler check for _fios_colours/DetailedFileType ( #12781 )
2024-06-16 08:54:41 +02:00
translators
0e7916a51b
Update: Translations from eints
...
greek: 2 changes by gh658804
lithuanian: 1 change by khamper
2024-06-16 04:41:19 +00:00
Rubidium
b18d8d6574
Fix: ensure revision mismatch also considers random debugging status
2024-06-15 23:14:45 +02:00
merni-ns
0409577277
Add: Setting to disable warning for old vehicles ( #12714 )
2024-06-15 17:14:29 -04:00
ladysadie
45d1f9aa80
Doc: Explain comment alignment in CODINGSTYLE.md
2024-06-15 17:13:42 -04:00
Tyler Trahan
d8771b3f68
Change: Don't use house construction states in Scenario Editor ( #12730 )
2024-06-15 17:11:00 -04:00
Tyler Trahan
4cbaac6dac
Fix #10239 : Use elevated snow height for roads on flat foundations ( #12776 )
2024-06-15 17:10:39 -04:00
Loïc Guilloux
d7137651f2
Fix #12787 : boostrap doesn't have main vindow ( #12788 )
2024-06-15 20:39:15 +00:00
Peter Nelson
b991a399ef
Codechange: Split MakeNWidget to improve readability. ( #12785 )
...
Split MakeNWidget() into two stages, widget-creation and attribute-applying, to reduce function size and make it clearer.
2024-06-15 20:10:52 +01:00
Peter Nelson
22d70f9334
Codechange: Pass NewGRF ByteReader by reference. ( #12786 )
...
ByteReader must be present and not null, so don't use a pointer.
2024-06-15 10:55:26 +01:00
Peter Nelson
b68172c225
Codechange: Use std::endian instead of TTD_ENDIAN where trivial. ( #12778 )
2024-06-15 10:24:17 +01:00
Peter Nelson
f9f07e9001
Fix #12775 : Text truncated incorrectly on Windows. ( #12782 )
...
Caused by a -1 in the wrong place, which moved glyphs left one pixel.
2024-06-14 16:32:31 +01:00
Peter Nelson
7b7e00123e
Codechange: Shuffle RoadStop members to reduce size.
...
Size is reduced from 40 bytes to 32 bytes on 64 bit platforms.
2024-06-14 13:32:08 +01:00
Peter Nelson
77f62e0c90
Codechange: Shuffle OrderList members to reduce size.
...
Size is reduced from 40 bytes to 32 bytes on 64 bit platforms.
2024-06-14 13:32:08 +01:00
translators
219995c643
Update: Translations from eints
...
polish: 1 change by pAter-exe
2024-06-13 04:42:16 +00:00
Peter Nelson
55314513ce
Codechange: Pass NWidgetParts as span instead of begin/end pointers. ( #12779 )
2024-06-12 23:08:35 +01:00
translators
81b5a7c7c6
Update: Translations from eints
...
german: 62 changes by Wuzzy2
2024-06-12 04:42:02 +00:00
Tyler Trahan
68f7d585b4
Doc: Remove resolved issue #4415 from known-bugs.txt ( #12773 )
2024-06-11 11:35:10 -04:00
Peter Nelson
4cf6d1dd79
Codechange: Pass WindowDesc by reference instead of pointer. ( #12771 )
...
WindowDesc as passed to Windows is not optional so don't allow to it to be nullptr.
2024-06-11 08:58:03 +01:00
translators
18bce69623
Update: Translations from eints
...
galician: 3 changes by pvillaverde
danish: 1 change by bscargo
polish: 5 changes by pAter-exe
2024-06-10 04:43:42 +00:00
Steve Goldman
7db756e602
Change: Do not automatically connect double depots with track
2024-06-09 14:50:59 +02:00
Jonathan G Rennison
fa82dd6096
Fix #12030 : Water infrastructure totals when using DC_FORCE_CLEAR_TILE
...
To remove objects on water
2024-06-09 14:49:09 +02:00
Peter Nelson
b4b2fad8e0
Fix #12648 : Ensure all uses of std::filesystem::path use native encoding. ( #12650 )
...
std::filesystem::path does not expect UTF-8 strings, so they must be converted to native format first (and back to utf-8 after.)
2024-06-09 10:23:47 +01:00
Peter Nelson
fce9361bf2
Change: Position caret on left or right of glyph depending on language direction.
2024-06-09 09:57:20 +01:00
Peter Nelson
5cd81a980e
Codechange: Store both left and right glyph positions in a run.
...
This also allows the end of a run to be known without using an extra position entry.
2024-06-09 09:57:20 +01:00
Peter Nelson
80ddcb9d7d
Codechange: Move GetCharPosInString/GetCharAtPosition to gfx_layout.
...
These functions are related more to layouting than graphics.
2024-06-09 09:57:20 +01:00
Peter Nelson
bbbf2b5282
Codechange: Return read-only span instead of vector from layout run functions.
2024-06-09 09:57:20 +01:00
translators
6bf214af6e
Update: Translations from eints
...
vietnamese: 3 changes by KhoiCanDev
polish: 13 changes by pAter-exe
2024-06-09 04:41:27 +00:00
Peter Nelson
79c1492a73
Codechange: Use unique_ptr in MemoryDumper. ( #12766 )
...
This replaces C-style manual memory management.
2024-06-08 21:59:56 +01:00
Jonathan G Rennison
af7ad964dd
Codechange: Avoid unnecessary allocation of temporaries in layout line cache ( #12737 )
2024-06-08 21:21:02 +01:00
translators
d7eb29d292
Update: Translations from eints
...
dutch: 2 changes by Afoklala
2024-06-08 04:42:12 +00:00
Peter Nelson
df1b6a933b
Fix #12764 : Crash when opening Detailed performance rating window with no companies. ( #12765 )
2024-06-07 21:57:18 +01:00
translators
79b573704b
Update: Translations from eints
...
french: 1 change by ottdfevr
portuguese: 2 changes by azulcosta
polish: 33 changes by pAter-exe
2024-06-07 04:43:07 +00:00
Peter Nelson
66044472d7
Codechange: Use std::unordered_map for NewGRF language_map.
...
NewGRFs only use a small subset of the available language IDs. Using an unordered_map allows only the reference languages to have space allocated.
This avoids manual new/delete of array.
2024-06-06 19:53:10 +01:00
Peter Nelson
fee73f3253
Codechange: Split types out of newgrf_text.h
2024-06-06 19:53:10 +01:00