Commit Graph

58922 Commits

Author SHA1 Message Date
Jonathan G Rennison
fc6a7a12cf Fix signal blocks containing no-entry signals not being promoted to PBS 2024-06-18 18:45:00 +01:00
Jonathan G Rennison
320e402cfe Test: Use template tests for multiple value types in ring buffer tests
Test non-trivially copyable and move-only types
2024-06-18 18:17:31 +01:00
Jonathan G Rennison
7b4429dfed Ring buffer: Add input iterator pair constructor 2024-06-18 18:15:46 +01:00
Jonathan G Rennison
9fbdfaffa2 Ring buffer: Use memcpy when reallocating trivially copyable types 2024-06-18 18:01:25 +01:00
Jonathan G Rennison
09a70f6216 Adjust road waypoint check in CmdInsertOrderIntl 2024-06-18 17:28:35 +01:00
Jonathan G Rennison
a64a3541fd Debug: Show vehicle progress in vehicle debug info 2024-06-18 17:28:18 +01: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
Jonathan G Rennison
b416a41f8b Fix minor spelling errors 2024-06-17 17:55:45 +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
Jonathan G Rennison
ffbc5aff6d Fix various formatting and spelling issues 2024-06-13 21:47:36 +01:00
Jonathan G Rennison
de36e9545e Merge branch 'master' into jgrpp
# Conflicts:
#	src/cargopacket.h
#	src/cargotype.h
#	src/station_base.h
#	src/station_cmd.cpp
#	src/timer/timer_game_common.h
#	src/town.h
2024-06-13 20:44:49 +01:00
Peter Nelson
4b169426dc Fix #12764: Crash when opening Detailed performance rating window with no companies. (#12765)
(cherry picked from commit df1b6a933b)
2024-06-13 20:10:14 +01:00
Jonathan G Rennison
fff46974fd Scheduled dispatch: Allow naming departure slot tags 2024-06-13 19:32:42 +01:00
Jonathan G Rennison
fe294403aa Add std::string_view variant of SetDParamStr 2024-06-13 19:28:22 +01:00
Jonathan G Rennison
ef91ed1dfb Scheduled dispatch: Fix string names for departure tag 2024-06-13 18:32:01 +01:00
Jonathan G Rennison
6a03992a03 Scheduled dispatch: Add dividers to management dropdowns 2024-06-13 18:11:38 +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
Jonathan G Rennison
c8ce89ff89 Fix stack alignment issues with 32 bit MinGW
Set incoming and preferred alignment to 4 bytes to match Win32 standard

See: #704
2024-06-12 13:23:30 +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
Jonathan G Rennison
c67f14dc88 Merge branch 'master' into jgrpp
# Conflicts:
#	src/fileio.cpp
#	src/fileio_func.h
#	src/industry_cmd.cpp
#	src/ini.cpp
#	src/openttd.cpp
#	src/os/windows/win32_main.cpp
#	src/settingsgen/settingsgen.cpp
#	src/strgen/strgen.cpp
#	src/strings.cpp
2024-06-10 22:38:23 +01:00
Jonathan G Rennison
79fe829e98 Allow road vehicle overtaking in road waypoint tiles 2024-06-10 20:44:54 +01:00
Jonathan G Rennison
102ba8932e Remove use of non-threadsafe strerror
Add helper class to use strerror_r or strerror_s
2024-06-10 20:16:08 +01:00
Jonathan G Rennison
81ba704477 Fix e53998ec0: Incorrect handling of changed path separators in strgen 2024-06-10 20:16:08 +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
Qwest8K
162015433e
Update: Russian translation to ''af102d1'' commit (#703)
Update: Russian translation to ''af102d1''
2024-06-09 12:03:25 +01: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