1
0
Fork 0
Commit Graph

29447 Commits (52bf41a9561d0044f02c9d694057157474bf5569)
 

Author SHA1 Message Date
Kaiden Joy 52bf41a956 Revert "Added SetDParam for economic Inauguration Year back in so both economic and calendar inauguration years can be visible"
-m "Made mistake in editing translation files"

This reverts commit 95c9770dc6b1532f0e392931684ac10c59f7f7d2.
2024-06-18 14:40:19 -04:00
Tyler Trahan c559c98bda Codefix: Don't claim to allocate new waypoint when just checking (#12792) 2024-06-18 14:28:18 -04:00
Peter Nelson 7b80be99ca 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-18 14:28:17 -04:00
ladysadie 6c5632e6e0 Codechange: Compiler check for _fios_colours/DetailedFileType (#12781) 2024-06-18 14:28:17 -04:00
translators 3784f76462 Update: Translations from eints
greek: 2 changes by gh658804
lithuanian: 1 change by khamper
2024-06-18 14:28:17 -04:00
Rubidium 672d603640 Fix: ensure revision mismatch also considers random debugging status 2024-06-18 14:28:17 -04:00
merni-ns 890fb4b0bd Add: Setting to disable warning for old vehicles (#12714) 2024-06-18 14:28:17 -04:00
ladysadie 89a341e4b0 Doc: Explain comment alignment in CODINGSTYLE.md 2024-06-18 14:28:17 -04:00
Tyler Trahan 02733cfc58 Change: Don't use house construction states in Scenario Editor (#12730) 2024-06-18 14:28:17 -04:00
Tyler Trahan 9c0612210f Fix #10239: Use elevated snow height for roads on flat foundations (#12776) 2024-06-18 14:28:17 -04:00
Loïc Guilloux 35eae677bf Fix #12787: boostrap doesn't have main vindow (#12788) 2024-06-18 14:28:17 -04:00
Peter Nelson 7e52f05a26 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-18 14:28:16 -04:00
Peter Nelson 210a71e468 Codechange: Pass NewGRF ByteReader by reference. (#12786)
ByteReader must be present and not null, so don't use a pointer.
2024-06-18 14:28:16 -04:00
Peter Nelson 14f603bcd8 Codechange: Use std::endian instead of TTD_ENDIAN where trivial. (#12778) 2024-06-18 14:28:16 -04:00
Peter Nelson 60bb98cdfd Fix #12775: Text truncated incorrectly on Windows. (#12782)
Caused by a -1 in the wrong place, which moved glyphs left one pixel.
2024-06-18 14:28:16 -04:00
Peter Nelson 7da6fc6b57 Codechange: Shuffle RoadStop members to reduce size.
Size is reduced from 40 bytes to 32 bytes on 64 bit platforms.
2024-06-18 14:28:16 -04:00
Peter Nelson a10f7070f4 Codechange: Shuffle OrderList members to reduce size.
Size is reduced from 40 bytes to 32 bytes on 64 bit platforms.
2024-06-18 14:28:16 -04:00
translators 1faafb4036 Update: Translations from eints
polish: 1 change by pAter-exe
2024-06-18 14:28:16 -04:00
Peter Nelson 14f947ceca Codechange: Pass NWidgetParts as span instead of begin/end pointers. (#12779) 2024-06-18 14:28:16 -04:00
translators ba590db0a2 Update: Translations from eints
german: 62 changes by Wuzzy2
2024-06-18 14:28:16 -04:00
Tyler Trahan 646d489390 Doc: Remove resolved issue #4415 from known-bugs.txt (#12773) 2024-06-18 14:28:16 -04:00
Peter Nelson 1a00f2d4a2 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-18 14:28:16 -04:00
translators 41c2cbe14b Update: Translations from eints
galician: 3 changes by pvillaverde
danish: 1 change by bscargo
polish: 5 changes by pAter-exe
2024-06-18 14:28:16 -04:00
Kaiden Joy 4790638520 Fix #12365: Added second parameter for INAUGURATED_TITLE to show both calendar and economic inaugurated years 2024-06-18 14:28:16 -04:00
Kaiden Joy 77d9205ef9 Fix: Added back SetDParam() for inauguration_year 2024-06-18 14:28:16 -04:00
Steve Goldman d21a963f57 Change: Do not automatically connect double depots with track 2024-06-18 14:28:16 -04:00
Jonathan G Rennison e391a32d72 Fix #12030: Water infrastructure totals when using DC_FORCE_CLEAR_TILE
To remove objects on water
2024-06-18 14:28:15 -04:00
Peter Nelson 994d3fd0ed 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-18 14:28:15 -04:00
Peter Nelson d856265b63 Change: Position caret on left or right of glyph depending on language direction. 2024-06-18 14:28:15 -04:00
Peter Nelson bc0639008c 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-18 14:28:15 -04:00
Peter Nelson db6c660768 Codechange: Move GetCharPosInString/GetCharAtPosition to gfx_layout.
These functions are related more to layouting than graphics.
2024-06-18 14:28:15 -04:00
Peter Nelson 668cb5b04c Codechange: Return read-only span instead of vector from layout run functions. 2024-06-18 14:28:15 -04:00
translators b707a8a2b6 Update: Translations from eints
vietnamese: 3 changes by KhoiCanDev
polish: 13 changes by pAter-exe
2024-06-18 14:28:15 -04:00
Kaiden Joy c737c32f5f Added Calendar verion of the inauguration year 2024-06-18 14:28:15 -04: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
translators fa24a3ec6b Update: Translations from eints
korean: 1 change by telk5093
2024-06-06 04:41:41 +00:00
translators 1f636d94d4 Update: Translations from eints
finnish: 2 changes by hpiirai
2024-06-05 04:43:21 +00:00
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.
2024-06-04 23:05:51 +01:00
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.
2024-06-04 18:06:19 +01:00
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
2024-06-04 04:41:49 +00:00
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.
2024-06-03 18:40:27 +01:00
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>
2024-06-03 15:45:02 +02:00
translators 01c75fc578 Update: Translations from eints
urdu: 24 changes by haidermazhar
2024-06-03 04:42:34 +00:00
Peter Nelson 1ab280a27a
Change: Use UK OSK layout for English (UK) (#12720) 2024-06-02 15:28:51 +01:00