translators
6006e832f2
Update: Translations from eints
...
finnish: 6 changes by hpiirai
2024-07-12 04:42:38 +00:00
translators
58e4643196
Update: Translations from eints
...
vietnamese: 4 changes by KhoiCanDev
2024-07-11 04:43:17 +00:00
Peter Nelson
e2a796dbcd
Codefix: Potential unterminated string returned from convert_to_fs.
...
Converting from UTF-8 to UTF-16 could have resulted in a buffer overflow if the buffer size was exactly the length of the converted string.
Pass string_view/span to convert_from/to_fs instead, and ensure the buffer is terminated. This replaces passing a pointer to the buffer and the buffer size as separate parameters, allowing the compiler to pass both in one parameter.
Removes use of `lengthof()`.
2024-07-10 20:57:02 +01:00
Peter Nelson
b37954722b
Codefix: Don't copy path string to itself.
...
When determining base paths on Windows the path is converted to UCS-16, and then copied into the same buffer.
2024-07-10 20:57:02 +01:00
Peter Nelson
e22eb89b92
Codechange: Call BSWAP32() in the default_grf_overrides initializer.
...
This causes the BSWAP32 calls to happen only on first initialisation (BSWAP32 is not constexpr), instead of every time GRFs are reloaded.
2024-07-10 20:56:35 +01:00
Peter Nelson
b090c8e9bd
Codechange: Replace default overrides arrays with std::pair and use range-for.
...
This avoids indexed array access and use of lengthof.
2024-07-10 20:56:35 +01:00
Peter Nelson
70d63f87b8
Codechange: Re-order ResultSpriteGroup to reduce its size.
2024-07-10 13:22:22 +01:00
Peter Nelson
db0ae42d45
Codechange: Set base type of spritegroup related enums.
...
This has a small impact on SpriteGroup object sizes.
2024-07-10 13:22:22 +01:00
Peter Nelson
55acc1b36d
Codechange: Don't format strings passed to GrfMsg unless the message will be used.
...
This makes GrfMsg() behave more like Debug().
2024-07-10 12:53:23 +01:00
Peter Nelson
ba0acb87eb
Fix #12832 : Sanitise strings from NewGRF before logging them in Debug output.
...
NewGRF strings may not be UTF-8 encoded, which causes issues on Windows.
2024-07-10 12:53:23 +01:00
Peter Nelson
93eb27d8df
Codechange: Use reference for always_accepted output parameter of AddAcceptedCargo. ( #12854 )
...
This parameter should always present (see tile_cmd.h:186), so use a reference to ensure it is.
2024-07-10 12:30:14 +01:00
Peter Nelson
60c3913a99
Codechange: Use range-for and std::size with _plural_forms. ( #12852 )
...
This removes indexed array access and use of `lengthof()` macro.
2024-07-10 09:41:28 +00:00
Peter Nelson
b4bcb330c7
Codechange: Replace GetSavegameFormat's compression output pointer with std::pair return. ( #12850 )
...
This avoids using an unchecked pointer as an out-parameter.
2024-07-09 18:57:47 +01:00
Peter Nelson
100dd7b6d1
Codechange: Use find_if to get default writeable saveload format. ( #12849 )
...
* Codechange: Use find_if to get default writeable savegame format.
This removes the last of lastof, and so the lastof macro is removed.
2024-07-09 17:07:40 +01:00
Peter Nelson
56b0eac2e9
Codechange: Use std::span/std::string_view for strecpy. ( #12848 )
...
This avoids needing to manually pass the last character of the destination buffer, and allows use of standard library functions.
2024-07-09 00:05:42 +01:00
J0anJosep
86e32631d7
Doc: Amend landscape grid after #12572 .
2024-07-08 21:15:07 +02:00
Peter Nelson
aee04e7bc6
Codechange: Pass span to StrValid instead of first and last - 1. ( #12846 )
...
`std::span` is used instead of `std::string_view` as this is only used for fixed-length buffers.
This removes some callers of `lastof()`
2024-07-08 08:36:57 +01:00
translators
23bcd592a4
Update: Translations from eints
...
chinese (simplified): 27 changes by WenSimEHRP
italian: 9 changes by ciampix
esperanto: 7 changes by ciampix
2024-07-08 04:43:44 +00:00
Peter Nelson
6120165433
Fix #12839 : Truncated help text dialog on Windows. ( #12844 )
...
Replace fixed-length buffer message conversion with std::string.
2024-07-07 18:05:53 +01:00
translators
f59ab67672
Update: Translations from eints
...
english (us): 2 changes by 2TallTyler
dutch: 1 change by Afoklala
french: 2 changes by ottdfevr
2024-07-06 04:42:37 +00:00
translators
5395d5731e
Update: Translations from eints
...
latvian: 3 changes by lexuslatvia
2024-07-05 04:43:57 +00:00
Peter Nelson
4976a0140e
Codefix: [UI] Incorrect initialisation order for rail/road toolbars. ( #12843 )
...
The toolbar state was set after the widget tree is created, during which toolbar state is needed.
2024-07-04 22:04:41 +01:00
Edmond Chui
2dc0a33eb7
Fix #12840 , ff3be45
: "Show industry names" blank panel not initialized properly
2024-07-04 22:51:06 +02:00
translators
794af62286
Update: Translations from eints
...
english (au): 1 change by krysclarke
swedish: 7 changes by joeax910
chinese (simplified): 2 changes by WenSimEHRP
korean: 1 change by telk5093
french: 2 changes by ottdfevr
2024-07-04 04:43:03 +00:00
translators
cd4233bedc
Update: Translations from eints
...
english (au): 1 change by krysclarke
chinese (simplified): 2 changes by WenSimEHRP
greek: 1 change by gh658804
russian: 2 changes by Ln-Wolf
finnish: 1 change by hpiirai
catalan: 2 changes by J0anJosep
portuguese: 1 change by azulcosta
portuguese (brazilian): 1 change by pasantoro
polish: 1 change by pAter-exe
2024-07-03 04:42:36 +00:00
Loïc Guilloux
8ef3a3d463
Codefix: "maybe uninitialized" warnings for linux generic release build ( #12838 )
2024-07-02 11:04:07 +02:00
translators
b27527ec0c
Update: Translations from eints
...
chinese (simplified): 4 changes by WenSimEHRP
catalan: 2 changes by J0anJosep
2024-07-02 04:42:53 +00:00
dP
f98b90ac2e
Codechange: Use constants for tree growth stages and tile update frequency ( #12833 )
2024-07-01 15:39:25 -04:00
J0anJosep
1e0004bcd6
Codechange: Slightly simplify code in clear_cmd.cpp.
2024-07-01 17:54:56 +02:00
Rubidium
4e026e448c
Feature: encrypt admin connection when using secure join
2024-07-01 17:16:55 +02:00
Rubidium
d3e37a251f
Doc: update main admin protocol documentation
2024-07-01 17:16:55 +02:00
Rubidium
da6900f606
Change: disable the insecure admin login by default
2024-07-01 17:16:55 +02:00
Rubidium
3094b0ce1d
Feature: admin support for password authentication without sending password
...
Using either password authenticated key exchange (PAKE) or authorized keys
2024-07-01 17:16:55 +02:00
Rubidium
b03ae8ad75
Codechange: add Authenticate status to the AdminStatus enum
2024-07-01 17:16:55 +02:00
Joan Josep
e7982e8082
Fix: typo in picker mode tooltip. ( #12834 )
2024-07-01 13:24:05 +00:00
Michal Charemza
c4b1596c97
Add: [Console] schedule command to execute a script file next in-game month ( #12761 )
2024-07-01 11:33:42 +02:00
Koen Bussemaker
a0845bba2c
Codechange: Reduced size of water region by not storing tile area
2024-07-01 11:10:20 +02:00
translators
8c7cf3bc75
Update: Translations from eints
...
chinese (simplified): 1 change by WenSimEHRP
french: 5 changes by ottdfevr, 1 change by ben20471
2024-07-01 04:42:17 +00:00
steve-goldman
f5f488e778
Change: improve when to stops following vehicle ( #12808 )
...
- Changing zoom no longer stops following vehicle
- Key scrolling while following a vehicle stops following
- Autoscrolling while following a vehicle stops following
- Main viewport can begin following a vehicle at any zoom
2024-07-01 01:13:47 +02:00
Jeremy Gao
9e14f989f9
Fix: Wrong punctuation in Simplified Chinese ( #12717 )
2024-06-30 22:54:02 +00:00
translators
b5f2004c26
Update: Translations from eints
...
norwegian (bokmal): 5 changes by eriksorngard
lithuanian: 3 changes by khamper
french: 3 changes by ben20471
2024-06-30 04:41:28 +00:00
Rubidium
14200212b7
Codechange: use std::optional<std::string> over char * for text query results
2024-06-29 16:33:16 +02:00
translators
3819ab25bf
Update: Translations from eints
...
norwegian (bokmal): 5 changes by eriksorngard
galician: 12 changes by pvillaverde
korean: 31 changes by telk5093
dutch: 14 changes by Afoklala
portuguese: 19 changes by azulcosta
2024-06-29 04:42:54 +00:00
Jonathan G Rennison
dc258ecbe0
Fix #12825 : Crash when opening road toolbar in scenario editor
...
Due to attempt to access missing road waypoint button
2024-06-28 21:30:38 +02:00
translators
95f2bec9a9
Update: Translations from eints
...
greek: 14 changes by gh658804
polish: 36 changes by pAter-exe
2024-06-28 04:42:00 +00:00
Peter Nelson
a288644e20
Fix #12815 , 7e914a0568
: Fallback detection failed with sprite font. ( #12816 )
...
How missing glyphs were detected was changed, but the sprite font still substituted `?`, which to missing glyph looked like all characters are present.
2024-06-27 07:34:01 +01:00
translators
da4b3bebee
Update: Translations from eints
...
english (au): 2 changes by krysclarke
english (us): 2 changes by 2TallTyler
chinese (simplified): 2 changes by WenSimEHRP
russian: 2 changes by Ln-Wolf
finnish: 25 changes by hpiirai
portuguese (brazilian): 2 changes by pasantoro
2024-06-27 04:44:27 +00:00
glx22
564397645f
Codefix: [CI] dubious ownership for emscripten
2024-06-26 23:02:27 +02:00
glx22
b52f778f20
Codefix: [Win32] Use correct range for version in rc file
2024-06-26 23:02:27 +02:00
Tyler Trahan
5ed2fcfb53
Change: Don't use house construction states in Scenario Editor
2024-06-26 16:27:02 -04:00