Commit Graph

29548 Commits (db36e61807955c896267d6585de0577efd30465d)
 

Author SHA1 Message Date
translators e3e215b249 Update: Translations from eints
german: 3 changes by Wuzzy2
portuguese (brazilian): 4 changes by pasantoro
3 months ago
translators 2dab9ac7a5 Update: Translations from eints
swedish: 4 changes by joeax910
catalan: 2 changes by J0anJosep
3 months ago
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.
3 months ago
Peter Nelson 731c56d116
Codefix: Add missing `const` inside script functions. (#12794)
Scripts do not modify items directly, marking them const enforces this.
3 months ago
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
3 months ago
Tyler Trahan e3156546fa
Codefix: Don't claim to allocate new waypoint when just checking (#12792) 3 months ago
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.
3 months ago
ladysadie 2bc3cc5b67
Codechange: Compiler check for _fios_colours/DetailedFileType (#12781) 3 months ago
translators 0e7916a51b Update: Translations from eints
greek: 2 changes by gh658804
lithuanian: 1 change by khamper
3 months ago
Rubidium b18d8d6574 Fix: ensure revision mismatch also considers random debugging status 3 months ago
merni-ns 0409577277
Add: Setting to disable warning for old vehicles (#12714) 3 months ago
ladysadie 45d1f9aa80
Doc: Explain comment alignment in CODINGSTYLE.md 3 months ago
Tyler Trahan d8771b3f68
Change: Don't use house construction states in Scenario Editor (#12730) 3 months ago
Tyler Trahan 4cbaac6dac
Fix #10239: Use elevated snow height for roads on flat foundations (#12776) 3 months ago
Loïc Guilloux d7137651f2
Fix #12787: boostrap doesn't have main vindow (#12788) 3 months ago
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.
3 months ago
Peter Nelson 22d70f9334
Codechange: Pass NewGRF ByteReader by reference. (#12786)
ByteReader must be present and not null, so don't use a pointer.
3 months ago
Peter Nelson b68172c225
Codechange: Use std::endian instead of TTD_ENDIAN where trivial. (#12778) 3 months ago
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.
3 months ago
Peter Nelson 7b7e00123e Codechange: Shuffle RoadStop members to reduce size.
Size is reduced from 40 bytes to 32 bytes on 64 bit platforms.
3 months ago
Peter Nelson 77f62e0c90 Codechange: Shuffle OrderList members to reduce size.
Size is reduced from 40 bytes to 32 bytes on 64 bit platforms.
3 months ago
translators 219995c643 Update: Translations from eints
polish: 1 change by pAter-exe
3 months ago
Peter Nelson 55314513ce
Codechange: Pass NWidgetParts as span instead of begin/end pointers. (#12779) 3 months ago
translators 81b5a7c7c6 Update: Translations from eints
german: 62 changes by Wuzzy2
3 months ago
Tyler Trahan 68f7d585b4
Doc: Remove resolved issue #4415 from known-bugs.txt (#12773) 4 months ago
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.
4 months ago
translators 18bce69623 Update: Translations from eints
galician: 3 changes by pvillaverde
danish: 1 change by bscargo
polish: 5 changes by pAter-exe
4 months ago
Steve Goldman 7db756e602 Change: Do not automatically connect double depots with track 4 months ago
Jonathan G Rennison fa82dd6096 Fix #12030: Water infrastructure totals when using DC_FORCE_CLEAR_TILE
To remove objects on water
4 months ago
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.)
4 months ago
Peter Nelson fce9361bf2 Change: Position caret on left or right of glyph depending on language direction. 4 months ago
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.
4 months ago
Peter Nelson 80ddcb9d7d Codechange: Move GetCharPosInString/GetCharAtPosition to gfx_layout.
These functions are related more to layouting than graphics.
4 months ago
Peter Nelson bbbf2b5282 Codechange: Return read-only span instead of vector from layout run functions. 4 months ago
translators 6bf214af6e Update: Translations from eints
vietnamese: 3 changes by KhoiCanDev
polish: 13 changes by pAter-exe
4 months ago
Peter Nelson 79c1492a73
Codechange: Use unique_ptr in MemoryDumper. (#12766)
This replaces C-style manual memory management.
4 months ago
Jonathan G Rennison af7ad964dd
Codechange: Avoid unnecessary allocation of temporaries in layout line cache (#12737) 4 months ago
translators d7eb29d292 Update: Translations from eints
dutch: 2 changes by Afoklala
4 months ago
Peter Nelson df1b6a933b
Fix #12764: Crash when opening Detailed performance rating window with no companies. (#12765) 4 months ago
translators 79b573704b Update: Translations from eints
french: 1 change by ottdfevr
portuguese: 2 changes by azulcosta
polish: 33 changes by pAter-exe
4 months ago
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.
4 months ago
Peter Nelson fee73f3253 Codechange: Split types out of newgrf_text.h 4 months ago
translators fa24a3ec6b Update: Translations from eints
korean: 1 change by telk5093
4 months ago
translators 1f636d94d4 Update: Translations from eints
finnish: 2 changes by hpiirai
4 months ago
Peter Nelson 57186d4650
Fix: Editbox behaved improperly with RTL languages. (#12746)
Text in the editbox was always left-aligned and did not scroll with the caret position.
4 months ago
Peter Nelson 579ce8eae0
Codefix: Find GRF override entries properly. (#12743)
My naive code from 16 years ago tested for GRF overrides in a way that will create empty 0 entries for each source GRF tested.
4 months ago
translators 342a7cebd6 Update: Translations from eints
english (au): 2 changes by krysclarke
chinese (simplified): 2 changes by WenSimEHRP
urdu: 6 changes by haidermazhar
russian: 2 changes by Ln-Wolf
catalan: 3 changes by J0anJosep
latvian: 2 changes by lexuslatvia
portuguese (brazilian): 2 changes by pasantoro
4 months ago
Peter Nelson 5fd23a2d70
Codechange: Pre-reserve vectors during NewGRF loading. (#12748)
Call reserve when we are given the number of elements up front. This reduces the number of reallocations and over-allocations done during loading.
4 months ago
dependabot[bot] 1c738e5084
Upgrade: [CI] Bump Apple-Actions/import-codesign-certs in the actions group (#12745)
Bumps the actions group with 1 update: [Apple-Actions/import-codesign-certs](https://github.com/apple-actions/import-codesign-certs).


Updates `Apple-Actions/import-codesign-certs` from 2 to 3
- [Release notes](https://github.com/apple-actions/import-codesign-certs/releases)
- [Commits](https://github.com/apple-actions/import-codesign-certs/compare/v2...v3)

---
updated-dependencies:
- dependency-name: Apple-Actions/import-codesign-certs
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago
translators 01c75fc578 Update: Translations from eints
urdu: 24 changes by haidermazhar
4 months ago